select * into #temp from 原表
truncate table 原表
insert into 原表 select (除ID以外的所有列) from #temp
DROP TABLE #temp
转自:之前网上看到的,但没记录下出处,希望原作看到了见谅。
select * into #temp from 原表
truncate table 原表
insert into 原表 select (除ID以外的所有列) from #temp
DROP TABLE #temp
转自:之前网上看到的,但没记录下出处,希望原作看到了见谅。