How to delete duplicate record from table in mysql

delete from table1
USING table1, table1 as vtable
WHERE (table1.ID > vtable.ID)
AND (table1.field_name=vtable.field_name)

Comments

Popular posts from this blog

Difference between var, let and const keyword in JavaScript

Salesforce Record Id

Salesforce External ID