由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Database版 - 问个很挠头的简单问题
相关主题
SQL String questionforeign key reference to two tables? how to do it?
请教Load table的问题how to list all tables in my account?
请问如何算出这个天数来Can I create thousands table in one...
SQL question...请教用ACCESS做REPORT(TABLE & GRAPH)
A weird errorOracle下如何能得到所有table的名字?
Help!!! constraint in inputting dataanalyze 在oracle里怎么用?
求教...初级问题急问一个关于T-SQL的问题,谢谢
how to see all the tables in SQL*PLUS?interview question (SQL)
相关话题的讨论汇总
话题: name2话题: table话题: name3话题: input话题: name
进入Database版参与讨论
1 (共1页)
g*****g
发帖数: 34805
1
一个table两个column id, name。我有一堆id, 有duplicate,怎么才能把name顺序列
出来,包括重复的。比如
Table
1 name1
2 name2
3 name3
Input 3, 2, 2
Output
3 name3
2 name2
2 name2
B*****g
发帖数: 34098
2
其实就是需要一个split。
你要是用oracle我可一个你写一个sql。
mysql? 你的荣我想一想

【在 g*****g 的大作中提到】
: 一个table两个column id, name。我有一堆id, 有duplicate,怎么才能把name顺序列
: 出来,包括重复的。比如
: Table
: 1 name1
: 2 name2
: 3 name3
: Input 3, 2, 2
: Output
: 3 name3
: 2 name2

s**********o
发帖数: 14359
3
把INPUT转成个TABLE,JOIN一下不就结了
c*****d
发帖数: 6045
4
嗯,这个最方便

【在 s**********o 的大作中提到】
: 把INPUT转成个TABLE,JOIN一下不就结了
B*****g
发帖数: 34098
5
1。哪里来的table?
2。几千个同样查询一起来怎么办?
3。能用SQL解决的就用SQL解决

【在 c*****d 的大作中提到】
: 嗯,这个最方便
1 (共1页)
进入Database版参与讨论
相关主题
interview question (SQL)A weird error
sqldeveloper 怎么读一个tableHelp!!! constraint in inputting data
fact table 和 dimension table 的区别到底是什么?求教...初级问题
SQL combine two columns from two different tables no shared (转载)how to see all the tables in SQL*PLUS?
SQL String questionforeign key reference to two tables? how to do it?
请教Load table的问题how to list all tables in my account?
请问如何算出这个天数来Can I create thousands table in one...
SQL question...请教用ACCESS做REPORT(TABLE & GRAPH)
相关话题的讨论汇总
话题: name2话题: table话题: name3话题: input话题: name