cleaning up db of redundant data

前端 未结 5 1657
时光说笑
时光说笑 2020-12-07 04:54
locid   country city
39409   US  Aaronsburg
128426  US  Aaronsburg
340356  US  Aaronsburg
429373  US  Aaronsburg
422717  US  Abbeville
431344  US  Abbeville
433062           


        
5条回答
  •  佛祖请我去吃肉
    2020-12-07 05:33

    1. Select the unique records and insert into another temporary table of the same schema.
    2. delete everyting from his table
    3. Select and insert back in from the temporary table.
    4. Remove temporary table

提交回复
热议问题