November 2004
Intermediate to advanced
584 pages
15h 29m
English
SET NULL
The NULL setting changes the text SQL*Plus prints in a column when the value for that column is null.
SET NULL null_textIs the text you want to print in place of a null value.
The default null text setting is an empty string, which causes null values to print as blanks. The following example shows this and shows how the null text may be changed:
SQL> SELECT employee_termination_date 2 FROM employee 3 WHERE employee_id=101; EMPLOYEE_ --------- SQL> SET NULL "*NULL*" SQL> SELECT employee_termination_date 2 FROM employee 3 WHERE employee_id=101; EMPLOYEE_ --------- *NULL*
If you use the COLUMN command to format a column, the NULL clause of that command will override this setting but only for that one column.
Read now
Unlock full access