Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

TRUE FALSE "invalid identifier"?

436909Mar 22 2005 — edited Mar 22 2005
Hi,

suppose I write the following code:

declare
a boolean := FALSE;
b varchar2(10);
begin
select decode(a,TRUE, 'a is true', FALSE, 'a is false', 'no idea what a is') into b from dual;
dbms_output.put_line(b);
end;

What's wrong with it, that I get "ORA-00904: "FALSE": invalid identifier"? Is there a limitation in the use of boolean vars?

Thanks a lot in advance
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 19 2005
Added on Mar 22 2005
5 comments
21,251 views