语句:
select rowid = identity(int,1,1),* into #temp from 表名
select * from #temp
?
举例:
原始数据:
数据库为mydata, 表名为:刊名

?
语句:
select rowid = identity(int,1,1),* into #temp from [mydata].[dbo].[刊名]
select * from #temp
结果:

?
语句:
select rowid = identity(int,1,1),* into #temp from 表名
select * from #temp
?
举例:
原始数据:
数据库为mydata, 表名为:刊名

?
语句:
select rowid = identity(int,1,1),* into #temp from [mydata].[dbo].[刊名]
select * from #temp
结果:

?