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

相关文章:

  • 2021-11-23
  • 2021-12-27
  • 2021-06-09
  • 2022-12-23
  • 2021-11-09
  • 2022-01-26
猜你喜欢
  • 2021-06-10
  • 2021-10-10
  • 2022-12-23
  • 2021-11-18
  • 2021-06-07
  • 2021-11-17
相关资源
相似解决方案