while exists (select count(*) from tablea group by col1 having count(*)>1  )
begin
delete top (1) from tablea where col1 in(
select col1 from tablea
group by col1 having count(*)>1
)
end

相关文章: