mysql刪除某個字段重複的數據

作個筆記web DELETE FROM tablename where id not in (select id from (select min(id) as id from tablename group by key) as b ) ; 其中key是重複的字段sql
相關文章
相關標籤/搜索