SQLServer 2005删除无主键表中的重复项

先把表拷到一个临时表中,然后保留表结构删除其内容,把临时表中的内容拷回来,删除临时表.

select   distinct   *   into   tmp   from   test  
truncate table test;
insert into test select * from tmp
drop table tmp

原文地址:https://www.cnblogs.com/CUCmehp/p/1539859.html