SELECT Row_Number() over ( order by getdate() ) as init , * FROM 表名 转载于:https://www.cnblogs.com/codeDevotee/p/7279485.html