+ 1

What is the difference between decode and case function?

1st Sep 2016, 4:34 AM
Kirtiranjan Sahoo
Kirtiranjan Sahoo - avatar
2 Respuestas
+ 1
Generally, not much. DECODE was introduced before CASE. The latter introduces newer features as it is a statement rather than a function, so you can use it in Where clauses and PL/SQL. CASE is easier to read. Therefore CASE is recommended over DECODE.
1st Sep 2016, 10:29 AM
Michael Skae
Michael Skae - avatar
0
Thanks
2nd Sep 2016, 3:16 AM
Kirtiranjan Sahoo
Kirtiranjan Sahoo - avatar