Answers for "remove all duplicate in the table mysql"

SQL
0

mysql delete duplicate rows except one

DELETE FROM NAMES
 WHERE id NOT IN (SELECT * 
                    FROM (SELECT MIN(n.id)
                            FROM NAMES n
                        GROUP BY n.name) x)
Posted by: Guest on July-18-2020
0

mysql remove duplicates

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)
Posted by: Guest on February-11-2021

Code answers related to "remove all duplicate in the table mysql"

Code answers related to "SQL"

Browse Popular Code Answers by Language