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