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

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

 

转载于:https://www.cnblogs.com/codeDevotee/p/7279485.html