📜  mysql 删除旧的重复项 - SQL 代码示例

📅  最后修改于: 2022-03-11 15:05:02.254000             🧑  作者: Mango

代码示例4
DELETE t1 FROM contacts t1
INNER JOIN contacts t2 
WHERE 
    t1.id < t2.id AND 
    t1.email = t2.email;Code language: SQL (Structured Query Language) (sql)