先複製出原表CREATE TABLE 新表 SELECT * FROM 舊錶;ide
清空原表DELETE FROM 舊錶;it
複製去重後的數據回新表INSERT INTO 舊錶 SELECT [全部字段] FROM 新表 GROUP BY [全部字段];class