Duplicate of How to delete duplicate records in mysql database?
id | name | link
1 bla www.google.com
2 lal www.stackoverflow.com
3 afs www.google.com
4 sds www.microsoft.com
In my database there some rows with same link. I want to delete one of that rows with the same link.
Such as, in my example I want to delete the row with the id = 3 but I want to keep id = 1.
How can I do this?
by the way there are 5840 rows. and I don't know which are the same. I need a code to compare them