Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
このクエリを書くと:
select Fname,Age*2 as Demo from Men where Demo = 5
その後、エラーが発生します
ORA-00904 (デモは識別されません)
どのように使用できますか?
Oracle では「as」は必要ありません。
あなたは単に書く:
select fname, asge*2 demo from men;
ただし、「where」句でエイリアスを使用することはできません。
別のサイトの投稿からの引用:
その技術的な問題は、where 句と group by 句が実行されているときに、クエリの選択部分が実行されておらず、エイリアスが割り当てられていないことです。順序付けは技術的に選択後に行われるため、エイリアスを使用できます。