dreamfly6

查重:

 select no from table_name group by no having count(no)>1;
 
删除重复数据中id较大的数据:
delete  from  table_name 
where no in (select no from table_name group by no having count(no)>1)  and id  not in (select min(id) from table_name group by no  having count(no)>1)

分类:

技术点:

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-01-19
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-19
猜你喜欢
  • 2021-06-19
  • 2022-12-23
  • 2021-11-29
  • 2022-01-08
  • 2022-02-15
相关资源
相似解决方案