ITPub博客

首页 > > > outer join test

outer join test

作者:友哥 时间:2018-08-27 21:17:00 0 删除 编辑
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

 

原文作者:;如有侵权,请联系管理员删除。

上一篇: qps.sh
下一篇: pg执行计划
请登录后发表评论 登录
全部评论

注册时间:2020-05-20

  • 博文量
    276
  • 访问量
    1000