首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 数据库 > oracle >

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

2011-12-25 
一个问题,大家帮忙先SQL:selectb.fbil_bill_nofrom(selectfe.fexp_consign_idfromfexpensefewherefe.fexp_

一个问题,大家帮忙先
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 无法使用外面定义的表的别名.

热点排行