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!

decode to check if given column is not null

450482Feb 5 2008 — edited Feb 6 2008
Hi
I was trying to write a decode statement that follows:
if col1 is not null then do something.
How can I write decode to have not null as an arguement?
...decode(col1, not null, 'This has a value')...
I do not want to check if null. I want to check if not null.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 5 2008
Added on Feb 5 2008
15 comments
73,451 views