Oracle null-related Functions
NULL-related functions help to deal with NULL values. This page organizes the commonly used NULL-related functions in Oracle.
-
COALESCE
OracleCOALESCE()is a built-in function that returns the first non-null value in a list of arguments. -
LNNVL
OracleLNNVL()is a built-in function that provides a concise way to evaluate a condition when one or both operands are NULL. It returnsFALSEif the condition isTRUE, andTRUEif the condition isFALSEorUNKNOWN. -
NANVL
OracleNANVL()is a built-in function that allows you to provide a default value for parameters that have a value ofNaN. It is only applicable toBINARY_FLOATandBINARY_DOUBLEdata types. -
NULLIF
OracleNULLIF()is a built-in function that compares two arguments and returnsNULLif they are equal, otherwise it returns the first argument. -
NVL
OracleNVL()is a built-in function that allows you to replaceNULLvalues with a specified value. -
NVL2
OracleNVL2()is a built-in function that allows you to determine which value to return based on whether an expression is null.