delete from 表名 where 重复字段 in (select 重复字段 from 表名 group by 重复字段 having count(重复字段) > 1)
and rowid not in (select min(rowid) from
表名 group by 重复字段 having count(重复字段)>1)

 

注解:“重复字段”为同一个字段。

相关文章:

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