标签:查询 HERE sub 分组查询 where main ssi from miss
SELECT
*
FROM
sys_role_permission main
WHERE
(SELECT COUNT(1)
FROM sys_role_permission sub
WHERE
main.sys_role_id = sub.sys_role_id
AND main.sys_permission_id > sub.sys_permission_id
) < 3;
标签:查询 HERE sub 分组查询 where main ssi from miss
原文地址:https://www.cnblogs.com/ZhangHaiBK/p/9104157.html