很郁闷的sql语句啊。其实仔细想也很简单。反正郁闷

表结构就是A,B,C3个字段
查询重复的记录
select count(*) ,A,B,C from test
group by A,B,C having count(*) > 1

删除重复的记录
select distinct * into #Tmp from test
drop table test
select * into test from #Tmp
drop table #Tmp

相关文章:

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