在SQL中插入临时表时使用自动增长的数据字段

select identity(int,1,1) id ,* into #tmp from tablename

原文地址:https://www.cnblogs.com/saptechnique/p/1588985.html