How to delete a list of duplicate records (including primary key repeat)

The first step: create a table as the original table structure

The second step, began to carry data, starting with the original table to re-check the data into the temporary table, then delete the old table data; and then moved to the original data in the table.
insert into xx Select distinct * from xx_temp

Published 388 original articles · won praise 40 · Views 100,000 +

Guess you like

Origin blog.csdn.net/qq_30347133/article/details/104917960