/ Published in: SQL
Where bad_table is the name of the table containing duplicate rows.
Expand |
Embed | Plain Text
CREATE TEMPORARY TABLE bad_temp AS SELECT DISTINCT * FROM bad_table; DELETE FROM bad_table; INSERT INTO bad_table SELECT * FROM bad_temp;
You need to login to post a comment.
