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!

[9.2i] CASE WHEN ... THEN null ELSE null END gives 'Not enough arguments...

445476Nov 24 2009 — edited Nov 28 2009
Gents, can someone explain:

CASE WHEN ... THEN null ELSE null END
gives "Not enough arguments for function"

These work:

CASE WHEN ... THEN '' ELSE '' END
CASE WHEN ... THEN null ELSE '' END
CASE WHEN ... THEN '' ELSE null END

So what's the deal with my first one?


But if I write:

create table a(a varchar2(100))
;
insert into a values(null)
;
select case when dummy='whatever' then null else a.a end from a cross join dual


a.a is null, so why doesnt it explode?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 26 2009
Added on Nov 24 2009
8 comments
7,766 views