select * from table where id in (select max(id) from table group by [去除重复的字段名列表,....])
--删除
from table where id not in (select max(id) from table group by [去除重复的字段名列表,....])
更多访问:
https://blog.csdn.net/weixin_34138139/article/details/93280536
-删除