/ Published in: SQL
Where bad_table is the name of the table containing duplicate rows.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
CREATE TEMPORARY TABLE bad_temp AS SELECT DISTINCT * FROM bad_table; DELETE FROM bad_table; INSERT INTO bad_table SELECT * FROM bad_temp;