得到記錄的行號,不考慮重復記錄
select ROW_NUMBER() OVER(order by Name) as RowIndex,* from SysObjects
得到記錄的序號
select RANK() OVER(order by Name) as RowIndex,* from SysObjects
posted on 2006-12-08 08:21  冷火  阅读(543)  评论(0编辑  收藏  举报