mysql中多个表的左外连接和内连接

时间:2014-06-19 19:13:29

标签: mysql inner-join outer-join

我需要复制以下Oracle中的条件到mysql ..我也编写了我的mysql查询版本,我在编写左外连接部分时遇到问题(我需要在选民身上执行左外部并与节点连接。可以有人请帮帮忙吗?

Oracle等效:

WHERE B.nid=C.nid
AND B.uid = D.uid
and D.nid(+)= E.nid

Mysql查询

select 
C.ccc
,D.dewde
from
USERS B
inner join
 ACCOUNT_GROUP_INFO C on (B.nid = C.nid)
  inner join
VOTERS D on (B.uid = D.uid)
 left outer join
 NODES E on (D.nid = E.nid)

有人可以帮我查询一下吗?

0 个答案:

没有答案