I need to DELETE duplicated rows for specified sid on a MySQL table.
DELETE
MySQL
How can I do this with an SQL query?
The following works for all tables
CREATE TABLE `noDup` LIKE `Dup` ; INSERT `noDup` SELECT DISTINCT * FROM `Dup` ; DROP TABLE `Dup` ; ALTER TABLE `noDup` RENAME `Dup` ;