sql - Removing duplicate rows in MySQL -
in database have ~67 000 rows have 12k duplicate rows different key.
i remove duplicates , save 1 row.
table name: seb_societe
similar columns: nom, phone, adress, zip
i tried this, did not work:
delete seb_societe t t.rowid < (select rowid seb_societe t2 t.rowid <> t2.rowid , t.nom = t2.nom , t.address = t2.address);
can advise why attempt didn't work, or how achieve desired outcome.
delete seb_societe exists ( select * ( select 1 seb_societe t2 t2.row_id > row_id , nom = t2.nom , address = t2.address ) x1 )
Comments
Post a Comment