PHP Basic : How to remove duplicate row form Database
To remove the all the duplicate entries from a particular mysql table, use the below mysql query : Step : 1
What the above query does is, it will create a new table with the filtered data (all duplicate entries were deleted).
Note : replace the whole [COLUMN TO remove duplicates BY] with your column name
Step 2: After that delete the old table
Step 3 : rename the new table
To remove the all the duplicate entries from a particular mysql table, use the below mysql query : Step : 1
What the above query does is, it will create a new table with the filtered data (all duplicate entries were deleted).
Note : replace the whole [COLUMN TO remove duplicates BY] with your column name
Step 2: After that delete the old table
Step 3 : rename the new table
No comments:
Post a Comment
Please leave your comments and we will be reply you back ASAP
vikas agrawal