由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Database版 - 问个笨问题
相关主题
请教一个mysql 排序问题。Rookie's question again
初级问题[转载] what's wrong with this PL/SQL
问个external table field definition的问题问一下数据库里的entity和object的区别
random sampling with replacement, how?请教一个问题
SQL combine two columns from two different tables no shared (转载)如何only update the first occurrence in a table
Table Merge (SQL Server)help about SQL for ACCESS
其实有个问题好久没有明白!database design issue
analyze 在oracle里怎么用?column in table point to another table
相关话题的讨论汇总
话题: table话题: 第一个话题: postgresql话题: 揭发话题: rownum
进入Database版参与讨论
1 (共1页)
c*****t
发帖数: 1879
1
一时没想出来怎么做。
有两个 table:
第一个的顺序,第一个 column 是 unique
1 a
3 c
2 b
5 d
另一个(其实是有第一个 table 计算出来的,但是结果
只是个 text[],也就是跟第一个 table 是一一对应)
m
o
q
p
想让变成
1 a m
3 c o
2 b q
5 d p
怎么弄?thx
实在不想写 UDF 弄了。
B*****g
发帖数: 34098
2
join rownum

【在 c*****t 的大作中提到】
: 一时没想出来怎么做。
: 有两个 table:
: 第一个的顺序,第一个 column 是 unique
: 1 a
: 3 c
: 2 b
: 5 d
: 另一个(其实是有第一个 table 计算出来的,但是结果
: 只是个 text[],也就是跟第一个 table 是一一对应)
: m

c*****t
发帖数: 1879
3
没 rownum,我是用 postgresql :(

【在 B*****g 的大作中提到】
: join rownum
B*****g
发帖数: 34098
4
postgresql 这儿就你一个用的。

【在 c*****t 的大作中提到】
: 没 rownum,我是用 postgresql :(
c*****t
发帖数: 1879
5
郁闷中 :(

【在 B*****g 的大作中提到】
: postgresql 这儿就你一个用的。
j*****n
发帖数: 1781
6
add one more column in table 2 then.

【在 c*****t 的大作中提到】
: 没 rownum,我是用 postgresql :(
B*****g
发帖数: 34098
7
我要揭发你上班逛bbs

【在 j*****n 的大作中提到】
: add one more column in table 2 then.
B*****g
发帖数: 34098
8
then?

【在 j*****n 的大作中提到】
: add one more column in table 2 then.
B*****g
发帖数: 34098
9
竟然用sequence,俺没想到。
http://www.postgresonline.com/journal/index.php?/archives/79-Simulating-Row-Number-in-PostgreSQL-Pre-8.4.html

【在 c*****t 的大作中提到】
: 郁闷中 :(
c*****t
发帖数: 1879
10
不行。第二个 table 其实是 text[],长度和第一个 table 一样。

【在 j*****n 的大作中提到】
: add one more column in table 2 then.
相关主题
Table Merge (SQL Server)Rookie's question again
其实有个问题好久没有明白![转载] what's wrong with this PL/SQL
analyze 在oracle里怎么用?问一下数据库里的entity和object的区别
进入Database版参与讨论
j*****n
发帖数: 1781
11
co-揭发...你上班逛bbs too...
how can you input chinese characters while you work?

【在 B*****g 的大作中提到】
: 我要揭发你上班逛bbs
B*****g
发帖数: 34098
12
http://www.newconcept.com/Reference/chinese_pinyin_input.html
I know where to 揭发 you,
you don't know where to 揭发 me.

【在 j*****n 的大作中提到】
: co-揭发...你上班逛bbs too...
: how can you input chinese characters while you work?

j*****n
发帖数: 1781
13
Yes I do know where to 揭发 you... hehe

【在 B*****g 的大作中提到】
: http://www.newconcept.com/Reference/chinese_pinyin_input.html
: I know where to 揭发 you,
: you don't know where to 揭发 me.

z*3
发帖数: 33
14
beijing真的是超级牛的说。。。都没啥说的了,sequence都想到了。。。
B*****g
发帖数: 34098
15
just talking to my boss while posting on working board

【在 j*****n 的大作中提到】
: Yes I do know where to 揭发 you... hehe
B*****g
发帖数: 34098
16
not me, sb else, so smart

【在 z*3 的大作中提到】
: beijing真的是超级牛的说。。。都没啥说的了,sequence都想到了。。。
1 (共1页)
进入Database版参与讨论
相关主题
column in table point to another tableSQL combine two columns from two different tables no shared (转载)
mysql maximum columns <=1000?Table Merge (SQL Server)
Q on adding new column其实有个问题好久没有明白!
Basic oracle questions.analyze 在oracle里怎么用?
请教一个mysql 排序问题。Rookie's question again
初级问题[转载] what's wrong with this PL/SQL
问个external table field definition的问题问一下数据库里的entity和object的区别
random sampling with replacement, how?请教一个问题
相关话题的讨论汇总
话题: table话题: 第一个话题: postgresql话题: 揭发话题: rownum