时间:2021-07-01 10:21:17 帮助过:4人阅读
删除重复数据:
DELETE FROM products AS A JOIN(SELECT name, COUNT(*), MAX(id) AS id FROM products GROUP BY name HAVING COUNT(*) > 1) AS B ON A.name = B.name WHERE A.id < B.id;
MySQL数据去重
标签:delete nbsp where sel having weight post 数据 from