NVL function (extension)
Syntax
NVL ( expression, expression )
Description
The scalar function NVL returns the value of the first expression if the first expression value is not null. If the first expression value is null, the value of the second expression is returned.
The NVL function is not ODBC compatible. Use the IFNULL function for ODBC-compatible syntax.
Example
SELECT salary + NVL (comm, 0) 'TOTAL SALARY'
FROM employee ;
Notes