sql语句执行错误ORA01719
发布网友
发布时间:2023-07-29 23:14
我来回答
共2个回答
热心网友
时间:2023-09-17 04:13
elect case when a.bizsn=b.bizsn or a.movsn=b.bizsn then b.chno end as b.chno
from a,b
where ( a.bizsn=b.bizsn or a.movsn=b.bizsn)--加括号
and a.curid=b.addid(+)
热心网友
时间:2023-09-17 04:13
拆成两步 select
select *
from (
select case。。。
。。。
where
)
where
sql语句出错:ORA-01719: outer join operator (+) not allowed in op...
SELECT P.*, PR.PRINTER_NO, U.USER_NAME FROM PROCESS P, PRINTER PR, USERS U WHERE P.PRINTER_ID=PR.PRINTER_ID(+) AND P.USER_ID = U.USER_ID(+) AND (P.STATUS = '002' OR P.STATUS= '003') ORDER BY P.PROCESS_ID ASC 有and的时候不要随便用or,要扩起来 ...
sql语句执行错误ORA01719
elect case when a.bizsn=b.bizsn or a.movsn=b.bizsn then b.chno end as b.chno from a,b where ( a.bizsn=b.bizsn or a.movsn=b.bizsn)--加括号and a.curid=b.addid(+)