当前位置: 代码迷 >> Oracle开发 >> 一个有关问题,大家帮忙先
  详细解决方案

一个有关问题,大家帮忙先

热度:70   发布时间:2016-04-24 07:54:03.0
一个问题,大家帮忙先
SQL:
select   b.fbil_bill_no
    from   (select   fe.fexp_consign_id
                    from   fexpense   fe
                  where   fe.fexp_bill_no   =   b.fbil_bill_no)   tt,
              fbill   b
  where   b.fbil_org_id   =   '135 '
编译出现错误,提示 "B ". "FBILL_BILL_NO ":   invalid   identifier


这是什么意思,有问题吗??
编译时FROM从右到左,把fbill   b移动到from旁边也不行。。

------解决方案--------------------
select b.fbil_bill_no
from fexpense fe,fbill b
where fe.fexp_bill_no = b.fbil_bill_no and b.fbil_org_id = '135 '

------解决方案--------------------
内部哪个子SELECT 无法使用外面定义的表的别名.
  相关解决方案