mysql 查询重复的记录

sql;gutter:true;
SELECT * FROM workorder_role_skill
WHERE (roleCode, skillCode) IN (
SELECT roleCode,skillCode FROM workorder_role_skill
GROUP BY roleCode,skillCode
HAVING count(1) > 1
)
ORDER BY roleCode ASC,skillCode ASC

Original: https://www.cnblogs.com/austinspark-jessylu/p/16280629.html
Author: 爷的眼睛闪亮
Title: mysql 查询重复的记录

原创文章受到原创版权保护。转载请注明出处:https://www.johngo689.com/7201/

转载文章受原作者版权保护。转载请注明原作者出处!

(0)

大家都在看

最近整理资源【免费获取】:   👉 程序员最新必读书单  | 👏 互联网各方向面试题下载 | ✌️计算机核心资源汇总