outer join test

create table t1_outerjoin(a int, b int , c int);
create table t2_outerjoin(a int);
create table t3_outerjoin(a int, b int);
create table t4_outerjoin(a int);


SELECT * FROM t1_outerjoin
                      LEFT JOIN
                      (t2_outerjoin, t3_outerjoin LEFT JOIN t4_outerjoin ON t3_outerjoin.a=t4_outerjoin.a)
                      ON (t1_outerjoin.a=t2_outerjoin.a AND t1_outerjoin.b=t3_outerjoin.b)
          WHERE t1_outerjoin.c > 5
MySQL限时解答,24小时内友哥专业解答
http://www.yougemysqldba.com
如有进一步需要请联系微信onesoft007
微博账号@友哥一指
原文地址:https://www.cnblogs.com/youge-OneSQL/p/9544804.html