Skip to content

NVL

  • expr1: This is the value to test. It is the source column or expression that may contain a NULL.
  • expr2: This is the substitute value. If expr1 is determined to be NULL, then NVL function will return expr2 instead.
SELECT NVL(column_name, 'N/A') FROM table_name;
N/A

This code snippet represents an example of using NVL() function in Oracle SQL. If the value in column_name is null, it will return ‘N/A’. Otherwise, the actual value in the column will be returned.