先加一种子列:alter table 表名 add 列名 int identity primary key
这样他能唯一标志
完成后删除他就可以

解决方案 »

  1.   

    如果是所有列都相同的那种重复可以试试这个
    select distinct * into #tmp from 表名
    delete 表名
    insert into 表名select * from #tmp
    drop table #tmp
      

  2.   

    delete  from tabele1 a inner join table1 b on a.id<b.id group by key
      

  3.   

    delete  from tabele1 a inner join table1 b on a.id<b.id group by b.key
      

  4.   

    这种是用了group by,不知道你能不能用上
    select identity(int,1,1) as autoID, * into #Tmp from 表名
    select min(autoID) as autoID into #Tmp2 from #Tmp group by 重复列
    select * from #Tmp where autoID in (select autoID from #tmp2) 
    drop table #tmp
    drop table #tmp2
      

  5.   

    最后多了一个autoID可以在select时不选