This Oracle tutorial explains how to use the Oracle IS NULL condition with syntax and examples.
The Oracle IS NULL condition is used to test for a NULL value. You can use the Oracle IS NULL condition in either a SQL statement or in a block of PLSQL code.
The syntax for the IS NULL condition in Oracle/PLSQL is:
The value to test whether it is a null value.
Here is an example of how to use the Oracle IS NULL condition in a SELECT statement:
This Oracle IS NULL example will return all records from the suppliers table where the supplier_name contains a null value.
Here is an example of how to use the Oracle IS NULL condition in an INSERT statement:
This Oracle IS NULL example will insert records into the suppliers table where the city contains a null value.
Here is an example of how to use the Oracle IS NULL condition in an UPDATE statement:
This Oracle IS NULL example will update records in the suppliers table where the name contains a null value.
Here is an example of how to use the Oracle IS NULL condition in a DELETE statement:
This Oracle IS NULL example will delete all records from the suppliers table where the supplier_name contains a null value.
You can use the Oracle IS NULL condition in PLSQL to check if a value is null.
For example,
If Lvalue contains a null value, the "IF" expression will evaluate to TRUE.
This Oracle tutorial explains how to test for a value that is not null.