阿拉随笔

博客园 首页 新随笔 联系 订阅 管理

用的是数据库sqlserver2000,唉,有点老了,好处是到处都有,安装方便。


select ( select count(*) from temp_gzsphzb as t1 where spid <=t2.spid) as xh ,* from temp_gzsphzb as t2
order by 1

 

留做纪念!

posted on 2016-05-10 16:29  alasunny  阅读(645)  评论(0编辑  收藏  举报