Home » Mysql » Mysql query to delete duplicate records from a table Mysql query to delete duplicate records from a table Here is the query to delete duplicate records from a table DELETE n1 FROM tableName n1,tableName n2 WHERE n1.id > n2.id AND n1.columnName = n2.columnName Share: Facebook Twitter Google+ StumbleUpon Digg Delicious LinkedIn Reddit Technorati
0 comments:
Post a Comment
Click to see the code!
To insert emoticon you must added at least one space before the code.