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

SELECT Row_Number() over ( order by getdate() ) as init , * FROM 表名
原文地址:https://www.cnblogs.com/codeDevotee/p/7279485.html