那重复记录一定很多。
如果没TEXT类的字段试一试:
select distinct * into #temp from table3
drop table table#
select * into table3 from #temp
drop table #temp

解决方案 »

  1.   

    同意楼上,第一个drop :drop table table3
      

  2.   

    但是,用DROP,也删除表的触发器等select distinct * into #t1 from table3
    truncate table table3
    insert into table3 select * from #t1
      

  3.   

    同意楼上的,用truncate比用drop好
    但第一句是不是该是insert into #t1 select distinct *from table3
    请教了。
      

  4.   

    同意楼上的,truncate比drop好
    但第一句是不是该是insert into #t1 select *from table3
    请教了
      

  5.   

    两者有区别的,前者:select ... into newTable,创建新表
    后者:insert into oldTable,在已有的表中插入数据,另外#表示临时表,在一个事务之后,会被清除!
      

  6.   

    同意楼上的,但是有个问题,就是帖主的数据库是不是可以确定数据唯一,就是说你的TABLE1,TABLE2的数据里是不是都是唯一的,会不会出现重复数据,如果会的话,那不能直接使用DISTINST来区分数据!得比较TABLE1,TABLE2了!