Answers for "how to delete duplicates rows from 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 "how to delete duplicates rows from mysql"

Code answers related to "SQL"

Browse Popular Code Answers by Language