码迷,mamicode.com
首页 > 其他好文 > 详细

sq2000中的row_number()

时间:2016-11-04 19:53:39      阅读:131      评论:0      收藏:0      [点我收藏+]

标签:from   top   count   topic   row   order   nbsp   使用   select   

sq2000 中无法使用row_number()

使用

select ( select count(*)
from xzt_da_Topic p1
where p1.id <= p2.id) as ABC,
* from xzt_da_Topic p2
order by ABC   代替

sq2000中的row_number()

标签:from   top   count   topic   row   order   nbsp   使用   select   

原文地址:http://www.cnblogs.com/njccqx/p/6031234.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!