Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Diff bet'n DECODE and CASE stmt
"rohit" <rohitk1973_at_yahoo.com> a écrit dans le message de
news:74353ecc.0402110748.4525e477_at_posting.google.com...
> What is the difference between Decode and Case statements when used in
> a SQL query? The two appear to do the same IF-THEN-ELSE logic, I am
> not sure how the optimizer treats the two. Any explanation on how the
> optimizer uses the two would be super.
>
> Mucho thanks,
> Rohit
Decode existed before case.
Case is much easier to use but...
as i have used decode for more than 10 years, i continue to use it :)
Regards
Michel Cadot
Received on Wed Feb 11 2004 - 10:47:07 CST
![]() |
![]() |