How to delete Duplicates in MySQL table

后端 未结 4 1630
耶瑟儿~
耶瑟儿~ 2020-11-27 07:39

I\'ve given a client the following query to delete duplicate phone no. records in an MSSQL database, but now they need to also do it on MySQL, and they report that MySQL com

4条回答
  •  旧时难觅i
    2020-11-27 07:59

    You can select out the unique ones by:

    select distinct(phoneNo) from bkPhone
    

    and put them into another table, delete the old table and rename the new one to the old name.

提交回复
热议问题