1. 程式人生 > >MySQL刪除重複記錄

MySQL刪除重複記錄

DELETE FROM t_application WHERE id NOT IN (SELECT minid FROM (SELECT MIN(t.id) AS minid FROM t_application t GROUP BY t.name) b);