得到記錄的行號,不考慮重復記錄
select ROW_NUMBER() OVER(order by Name) as RowIndex,* from SysObjects
得到記錄的序號
select RANK() OVER(order by Name) as RowIndex,* from SysObjects
select ROW_NUMBER() OVER(order by Name) as RowIndex,* from SysObjects
得到記錄的序號
select RANK() OVER(order by Name) as RowIndex,* from SysObjects