Answers for "mysql delete duplicate records and remain only one"

SQL
0

mysql delete older duplicates

delete test
   from test
  inner join (
     select max(id) as lastId, email
       from test
      group by email
     having count(*) > 1) duplic on duplic.email = test.email
  where test.id < duplic.lastId;
Posted by: Guest on August-17-2020

Code answers related to "mysql delete duplicate records and remain only one"

Code answers related to "SQL"

Browse Popular Code Answers by Language