刪除數據庫中多字段重複的數據

SELECT id FROM tablename a WHERE (a.stu_id, a.tea_id) IN ( SELECT stu_id, tea_id FROM tablename GROUP BY stu_id, tea_id HAVING count(*) > 1 ) AND id NOT IN ( SELECT mi
相關文章
相關標籤/搜索