如何将这两个 SQL Blackboard 查询组合成一个查询(“AND”)以在控制台上运行以列出所有具有 TESTROLE2 辅助角色的 TESTROLE1?
select user_id from users where authority_roles_pk1 = (select pk1 from authority_roles where role_name = 'TESTROLE1');
select user_id from users where pk1 IN (select users_pk1 from user_roles where authority_roles_pk1 = (select pk1 from authority_roles where role_name = 'TESTROLE2'));