SQL Server查询时添加一列连续的自增列

select Row_Number() over ( order by getdate() ) as init

原文地址:https://www.cnblogs.com/wuyujie/p/8308797.html