ComputerGeek

ComputerGeek


MySQL delete duplicate rows from table using single query

Posted: 24 Sep 2013 03:49 AM PDT

MySQL delete duplicate rows from table using single query: In this article,I will show how to delete duplicate records from table using single MySQL Query. Example: I have a table contain departments (department_table). CREATE TABLE IF NOT EXISTS `department_table` (   `id` INT(11) NOT NULL AUTO_INCREMENT,   `department` VARCHAR(250) NOT NULL,   PRIMARY KEY (`id`) ) ENGINE=MYISAM DEFAULT


Post a Comment