How to delete records in the table which are repeated?

前端 未结 6 1768
长情又很酷
长情又很酷 2021-01-25 03:35

Hi Here i came across a situation in which by mistakenly Without dropping the table i have run the batch file of the table which consists of some insert statements in detail

6条回答
  •  北海茫月
    2021-01-25 04:11

    CREATE TABLE new_tbl(id int AUTO_INCREMENT,priority_name);
    
    INSERT INTO new_tbl
    select priority_name from old_tbl group by priority_name;
    

提交回复
热议问题