那重复记录一定很多。
如果没TEXT类的字段试一试:
select distinct * into #temp from table3
drop table table#
select * into table3 from #temp
drop table #temp
如果没TEXT类的字段试一试:
select distinct * into #temp from table3
drop table table#
select * into table3 from #temp
drop table #temp
truncate table table3
insert into table3 select * from #t1
但第一句是不是该是insert into #t1 select distinct *from table3
请教了。
但第一句是不是该是insert into #t1 select *from table3
请教了
后者:insert into oldTable,在已有的表中插入数据,另外#表示临时表,在一个事务之后,会被清除!