SQL刪除重複記錄,並只保留一條

delete WeiBoTopics where Id in(select max(Id) from WeiBoTopics group by WeiBoId,Title having COUNT(*) > 1); 
相關文章
相關標籤/搜索