Returns the first nonnull expression, or NULL.
If the first expression is the NULL value, then the value of the second expression is returned. If the first expression is not NULL, the value of the third expression is returned. If the first expression is not NULL and there is no third expression, then the NULL value is returned.
Parameter |
Description |
---|---|
expression1 |
The expression to be evaluated. Its value determines whether expression2 or expression3 is returned. |
expression2 |
The return value if expression1 is NULL |
expression3 |
The return value if expression1 is not NULL. |
The data type returned depends on the data type of expression-2 and expression-3.