MySQL数据库删除重复记录只保留其中一条
**查出重复的type** SELECT type FROM table GROUP BY type HAVING count(type) > 1; **查出重复的type数据中最小的id** SELECT min(id) FROM table GROUP BY type HAVING count(type) > 1; **查出重复的type...
**查出重复的type** SELECT type FROM table GROUP BY type HAVING count(type) > 1; **查出重复的type数据中最小的id** SELECT min(id) FROM table GROUP BY type HAVING count(type) > 1; **查出重复的type...