There are different ways you can handle this.
1. To get rid of them, just create a new table by:
CREATE TABLE newtab AS
SELECT DISTINCT *
FROM oldtab;
After making sure the new table looks okay, you can delete from original table and copy the data in from the new table.
2. To find wholly duplicate rows you must name ALL the columns in the table.
SELECT col1, col2, ..., colN, count(*)
FROM oldtable
GROUP BY col1, col2, ..., colN
HAVING count(*) > 1;
Once you have a table with no duplicate rows, you can go ahead with the update.
HTH
|