Having duplicate vales is not a new problem in Sql database but I would ask you that you provided a unique id to your record better than that why you dint make your table more secured such as it gives you an error when you are trying to enter and duplicate values this would solve your problem in the beginning itself giving an unique id to each an every record is not a good option anyways now you can solve it with a simple delete query first fetch the data which are have same value and then you can delete them by providing the condition in where clause hope it helps your problem.
Try this query out
Code:
CREATE TABLE NEWTABLE AS SELECT DISTINCT * FROM ORIGINALTABLE;
Then you can delete original table
Code:
DROP TABLE ORIGINAL_TABLE;
Then you have to rename the new table with the original table
Code:
RENAME NEWTABLE TO ORIGINALTABLE;
Bookmarks