Answers for "delete rows with duplicate column values mysql"

SQL
4

mysql delete duplicates

DELETE FROM CONTACTS
WHERE ID NOT IN
      (SELECT *
       FROM (SELECT max(ID)		
             FROM CONTACTS
             GROUP BY EMAIL) t);
 -- ⇓ Test it ⇓ (Fiddle source link)
Posted by: Guest on July-13-2021

Code answers related to "delete rows with duplicate column values mysql"

Code answers related to "SQL"

Browse Popular Code Answers by Language