MySql删除重复数据并保留一条时间:2022-09-22 23:30:08 DELETE FROM tbl_1 WHERE id NOT IN( SELECT id FROM ( SELECT min(id) AS id FROM tbl_1 GROUP BY `duplicate_id` ) a )