delete table where id not in (

  select max(id) from table group by col1,col2,col3...
)
group by 子句后跟的字段就是你用来判断重复的条件,如只有col1,那么只要col1字段内容相同即表示记录相同。

相关文章:

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