NVL2
Purpose
This function replaces NULL
values with expr3
, otherwise it uses expr2
.
Syntax
nvl2::=
Usage Notes
- If
expr1
isNULL
, thenexpr3
is returned, otherwiseexpr2
is returned. - The abbreviation NVL stands for "Null Value".
- If there is no legal type conversion between
expr2
andexpr3
, then the function returns an error. - For additional information, see NVL.
Example
Result
NVL_1 | NVL_2 |
3 | 2 |