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 returnsFALSE
if the condition isTRUE
, andTRUE
if the condition isFALSE
orUNKNOWN
. -
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_FLOAT
andBINARY_DOUBLE
data types. -
NULLIF
OracleNULLIF()
is a built-in function that compares two arguments and returnsNULL
if they are equal, otherwise it returns the first argument. -
NVL
OracleNVL()
is a built-in function that allows you to replaceNULL
values 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.