使用: ROW_NUMBER() over(order by ID desc)
insert into dbo.Aa(Name,Nums) select top 10 NickName,ROW_NUMBER() over(order by ID desc) as Nums from td_UserInfo
插入后,Nums的字段就是从1开始的自增数字。