Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: "CASE when" strange
You need to either use double quotes or no quotes at all around test,
not single quotes. Please see the examples below.
scott_at_ORA92> select case when sysdate is null then 'nulldate'
2 else to_char (sysdate) end as test
3 from dual
4 /
TEST
test
![]() |
![]() |