delete from tablename a where exists(select * from tablename where a.id<id and a.col1=col1)
如果没有id
alter table tablename add id int identity(1,1)
delete from tablename a where exists(select * from tablename where a.id<id and a.col1=col1)
alter table tablename drop column id
-----
select distinct * into #t from 原表
truncate table 原表
insert into 原表 select * from #t
drop table #t