私のテーブルALI_LEASE_IN
にはDEF14
フィールドがあります(赤いフレームについては申し訳ありませんが、DEF16を選択してください)、私のスナップショットに表示されます。私のテーブルに照会すると無効な識別子
しかし、ときに私は、クエリのSQLを実行します。
select b.equip_name a2,b.model b3,b.def2 c4,b.def3 d5,
ALI_LEASE_IN.DEF14 as e6,
'' f7,
To_char(b.pre_rent) h9,
b.start_date k10,
sup.name j11,
org.name l12,
b.memo o13,
h.bill_date bdate,
h.pk_group
from ali_lease_in_b b,ali_lease_in h,bd_supplier sup,org_itemorg org
where b.pk_lease_in=h.pk_lease_in
and h.pk_supplier=sup.pk_supplier
and b.pk_org=org.pk_itemorg
をしかし、私は下に、このエラーを得た:私のスナップショットは、DEF14を示し、なぜ、私は知らない
[SQL]select b.equip_name a2,b.model b3,b.def2 c4,b.def3 d5,
ALI_LEASE_IN.DEF14 as e6,
'' f7,
To_char(b.pre_rent) h9,b.start_date k10,sup.name j11,org.name l12, b.memo o13,h.bill_date bdate,h.pk_group
from ali_lease_in_b b,ali_lease_in h,bd_supplier sup,org_itemorg org
where b.pk_lease_in=h.pk_lease_in
and h.pk_supplier=sup.pk_supplier
and b.pk_org=org.pk_itemorg
--and h.pk_org in (parameter('param3'))
-- and substr(h.bill_date,1,10) >= parameter('param1')
-- and substr(h.bill_date,1,10) <= parameter('param2')
[Err] ORA-00904: "ALI_LEASE_IN"."DEF14": invalid identifier
私のテーブルの中にある。
私の環境は次のとおりです。
データベースがOracleで、 映像ソフトは、Navicatはあります。
from ali_lease_in_b b,ali_lease_in h,bd_supplier sup,org_itemorg org
この行は、テーブルali_lease_in
別名h
を得る:
はh.DEF14' 'を使用して選択して' ALI_LEASE_IN.DEF14'を交換してみてください、フィールドには、 ''句からhとエイリアスされた 'ALI_LEASE_IN'テーブルの一部です。 – Veverke