sqlserver得到行号

select * from O_OrderWovenLabel

select row_number()over(order by Size )as RowNum,*from O_OrderWovenLabel

ROW_NUMBER() OVER (ORDER BY id desc)为SQL2005新增函数,表示取出每一列的行号

posted @ 2012-05-30 09:58  KyrieYang  阅读(15576)  评论(0编辑  收藏  举报