ORA-00923: 未找到要求的 FROM 关键字


oracle处理 后台数据时,

select a.oga01 发货单号,e.imaud04 箱/套
from oga_file a
left join ogb_file b on b.ogb01 = a.oga01
left join oeb_file c on c.oeb01 = b.ogb31 and c.oeb03 = b.ogb32
left join oea_file d on d.oea01 = c.oeb01
left join ima_file e on e.ima01 = b.ogb04
left join oah_file f on f.oah01 = d.oea31
left join sfb_file g on g.sfb22 = c.oeb01 and g.sfb221 = c.oeb03
where a.ogaconf <> 'X'

老是提示“ORA-00923: 未找到要求的 FROM 关键字” ,上网查看了很多有类似问题的网友,

大部分都是因为字段之间漏掉逗号,

最后排查发现原来是取别名的时候出现特殊字符报错,把e.imaud04 箱/套 -> e.imaud04 "箱/套"就解决了。


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM