Content deleted Content added
→Oracle SQL: fix syntaxhighlight error |
|||
Line 781:
In addition to the standard {{code|CASE}} expression, Oracle has a [[variadic function]]al counterpart which operates similarly to a [[switch statement]] and can be used to emulate the conditional operator when testing for equality.
<syntaxhighlight lang="
-- General syntax takes case-result pairs, comparing against an expression, followed by a fall-back result:
DECODE(expression, case1, result1,
|