sql语句查询结果中添加自增列

SELECT Row_Number() over ( order by getdate() ) as init , * FROM 表名

 

posted @ 2017-08-03 14:21  沉迷编程的程序员  阅读(620)  评论(0编辑  收藏  举报