ORACLE/PLSQL: NVL FUNCTION This Oracle tutorial explains how to use the Oracle/PLSQL NVL function with syntax and examples.
DESCRIPTION The Oracle/PLSQL NVL function lets you substitute a value when a null value is encountered.
SYNTAX The syntax for the Oracle/PLSQL NVL function is: NVL( string1, replace_with )
Parameters or Arguments string1 is the string to test for a null value. replace_with is the value returned if string1 is null.
APPLIES TO The NVL function can be used in the following versions of Oracle/PLSQL: Oracle 12c, Oracle 11g, Oracle 10g, Oracle 9i, Oracle 8i
EXAMPLE Let's look at some Oracle NVL function examples and explore how to use the NVL function in Oracle/PLSQL. For example: SELECT NVL(supplier_city, 'n/a') FROM suppliers;