Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: Decode
No, I didn't know that.
Interesting:
select decode (
(select to_char(sysdate, 'DAY') from dual),
'MONDAY','Groan...', 'TUESDAY','Another day, another dollar', 'WEDNESDAY','Hump Day', 'THURSDAY','Let me out of here!', 'FRIDAY',( select chr(84)||chr(104)||chr(97) ||chr(110)||chr(107)||chr(32) ||chr(103)||chr(111)||chr(100) ||chr(33) from dual ),
Jared
On Wednesday 11 September 2002 12:33, Fink, Dan wrote:
> DECODE(expression,
> value1, return1,
> value2, return2,
> ....
> default_return)
>
>
>
> >
>
>
![]() |
![]() |