Delete Duplicate email addresses from Table in MYSQL

前端 未结 5 1270
深忆病人
深忆病人 2020-12-18 09:20

I have a table with columns for ID, firstname, lastname, address, email and so on.

Is there any way

5条回答
  •  借酒劲吻你
    2020-12-18 09:48

    • Duplicate the table structure
    • Put a Unique Key on the email of the new table (just for safe)
    • Do a INSERT on the new table SELECTING data from the older one GROUPING by the email address

提交回复
热议问题