How to delete duplicates on a MySQL table?

后端 未结 25 2905
遇见更好的自我
遇见更好的自我 2020-11-22 01:35

I need to DELETE duplicated rows for specified sid on a MySQL table.

How can I do this with an SQL query?

         


        
25条回答
  •  傲寒
    傲寒 (楼主)
    2020-11-22 02:13

    You could just use a DISTINCT clause to select the "cleaned up" list (and here is a very easy example on how to do that).

提交回复
热议问题