delete from tb_table where id not in (select maxid from (select max(id) as maxid from tb_table group by sample_code) b);

tb_table:表名;

id,sample_code:列名

相关文章:

  • 2021-08-31
  • 2022-01-27
  • 2022-02-04
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-28
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-07-27
  • 2022-12-23
  • 2021-11-23
  • 2021-07-14
相关资源
相似解决方案