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!

check if NULL

648405Jul 6 2008 — edited Jul 6 2008
Hi all!

How do I read a boolean value from a select statement if a cell value is NULL?
Usingmysql, you can do such a thing by:
SELECT (NULL IS NULL) AS X;
Returns: 1, else 0.

But, how can that be done in Oracle? If I try
SELECT NULL is NULL AS zerocheck FROM dual;
I recieve: ORA-00923 keyword FROM found anywhere else as it should be (translated error message...)

May anyone give me the statement for the task of NULL checking?

regards, Alex
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 3 2008
Added on Jul 6 2008
5 comments
555 views