当前位置: 代码迷 >> DB2 >> 各位大侠问一个DB2中左连接的有关问题
  详细解决方案

各位大侠问一个DB2中左连接的有关问题

热度:2293   发布时间:2013-02-26 00:00:00.0
各位大侠问一个DB2中左连接的问题
select * from a left outer join b on a.xh=b.xh
 
这是a表左连接b表的语句,如果我想同时实现a表左连接c表(a.xh=c.xh),同时左连接d表(a.xh=d.xh)等多个表,语句应该如何写??


------解决方案--------------------------------------------------------
SQL code
select *  from ((a left outer join b on a.xh=b.xh)    left join c on a.xh=c.xh)    left join d on a.xh=d.xh
  相关解决方案