查找表中多餘的重複記錄(多個字段)

select a.* from entest a,(select article_id,users_id from entest group by article_id,users_id having count(*)>1) b where a.users_id=b.users_id and a.article_id=b.article_id


表內容如下:


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章