mysql之刪除重複數據

//刪除id重複的數據,適合id是手工主鍵 delete person as a from person as a, (     select *,min(id) from person group by id having count(1) > 1 ) as b where a.id = b.idspa                    //查找name重複的,而且除掉id最小的那個 del
相關文章
相關標籤/搜索