当前位置: 代码迷 >> Oracle技术 >> SQL语句 求问解决方法
  详细解决方案

SQL语句 求问解决方法

热度:390   发布时间:2016-04-24 08:04:54.0
SQL语句 求问
select t.uuid,t.emp_name,t.emp_sex from bcot_emp_info t left join (select u.value from bcot_pcood u where u.key in (select t.nation from bcot_emp_info t)and u.type_code='MZ') left join (select u.value from bcot_pcood u where u.key in (select t.emp_zzmm_code from bcot_emp_info t)and u.type_code='ZZMM') 
一直提示是缺少关键字是怎么回事 ,我写的不对 吗?
------解决思路----------------------
t1 left  jion t2 on t1.x=t2.x
------解决思路----------------------
t1 left jion t2 on t1.x=t2.x
    left jion t3 on t1.x=t3.x
------解决思路----------------------
join与on是配合的,没有on的join语句不对
  相关解决方案