显示:
SELECT
a.uuid AS user_organ_relate_uuid,
b.org_code,
b.org_name,
b.org_type,
c.user_id,
c.user_name
FROM
t_user_organ_relate a
INNER JOIN t_organ b on a.org_code = b.org_code
INNER JOIN t_user c on a.user_id = c.user_id
取交集,查询结果最少;
隐世:
SELECT
a.uuid id,
b.org_code,
b.org_name,
b.org_type,
c.user_id,
c.user_name
FROM
t_user_organ_relate a,t_organ b,t_user c
WHERE a.org_code = b.org_code AND a.user_id = c.user_id
取并集,查询结果最多;
来源:https://www.cnblogs.com/unknownCode/p/12014757.html