Oracle plsql nvl function

Page 1

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;


Turn static files into dynamic content formats.

Create a flipbook
Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.
Oracle plsql nvl function by John Suma - Issuu