I have a MySQL table like:
MySQL
ID, Col1, Col2, Col3, Col4, etc...
ID is a primary key and has been w
primary key
You can try this with the help of join : Like that way:
DELETE e1 FROM emp_tbl AS e1 JOIN emp_tbl AS e2 WHERE e1.Col1=e2.Col1 AND e1.Col2=e2.Col2 AND e1.Col3=e2.Col3 AND e1.Col4=e2.Col4 AND e1.id < e2.id;