没有其他简单的办法,只好编程解决。
可以使用存储过程,也可以使用触发器。
如:
select * into #t from yourtable
truncate table yourtable
insert yourtable select * from #t
可以使用存储过程,也可以使用触发器。
如:
select * into #t from yourtable
truncate table yourtable
insert yourtable select * from #t
调试欢乐多
go
alter table #t
drop column id
go
truncate table yourtable
go
insert yourtable select * from #t
go