[求助]查询产生结果集时显示其顺序号
我在查询数据时,用到了排序而以前的顺序给打乱了.
请问现在有没有方法建立一个新的列,用来临时显示其顺序号
比如第一行,显示1,
第二行,显示2.
以此类推..
谢谢..
我在查询数据时,用到了排序而以前的顺序给打乱了.
请问现在有没有方法建立一个新的列,用来临时显示其顺序号
比如第一行,显示1,
第二行,显示2.
以此类推..
谢谢..
2006-03-23 11:23
2006-03-23 11:27
2006-03-23 11:29
2006-03-23 11:42
2006-03-23 11:48
2006-03-23 12:15
2006-03-23 12:20
if you want to do that you can declare a curser
i think that may be have something help for you
you can use the curser get row number to a variable
then print it out!
that is my idea.
becouse i can't find any fuction to do this work!

2006-03-23 12:37
if you want to do that you can declare a curser
i think that may be have something help for you
you can use the curser get row number to a variable
then print it out!
that is my idea.
becouse i can't find any fuction to do this work!
汗...谁帮我翻译一下.
2006-03-23 12:46
我的英语不怎么样,可能有的地方表述的不是很明白。
译文如下:
如果你非要那么做,你可以定义一个游标,那样或许对你会有所帮助
你可以用游标得出行号,然后赋值给一个变量,然后将它输出
这是我的办法,说实话我也没找到这样的函数!

2006-03-23 12:58