oracle pl sql error oracle pl sql error oracle pl sql error
 

Oracle/PLSQL: IS NULL

In other languages, a null value is found using the = null syntax. However in PLSQL to check if a value is null, you must use the "IS NULL" syntax.

To check for equality on a null value, you must use "IS NULL".

For example,

IF Lvalue IS NULL then

.

END IF;

If Lvalue contains a null value, the "IF" expression will evaluate to TRUE.

You can also use "IS NULL" in an SQL statement. For example:

select * from suppliers where supplier_name IS NULL;

This will return all records from the suppliers table where the supplier_name contains a null value.

 

 

 

 
 

Oracle/PLSQL: IS NOT NULL


In other languages, a not null value is found using the != null syntax. However in PLSQL to check if a value is not null, you must use the "IS NOT NULL" syntax.

For example,

IF Lvalue IS NOT NULL then

.

END IF;

If Lvalue does not contain a null value, the "IF" expression will evaluate to TRUE.

You can also use "IS NOT NULL" in an SQL statement. For example:

select * from suppliers where supplier_name IS NOT NULL;

This will return all records from the suppliers table where the supplier_name does not contain a null value.

 

 
 
 
Oracle news Oracle guide
 
     
  29-11-2006 Guida Oracle 10g
     
  30-02-2007 Oracle Server
     
  29-02-2007 Oracle Errors
Functions Oracle Functions
Delete Delete
Between Between
Check Check
Count Count
Datatypes Datatypes
Delete Oracle Delete Statement
Distinct Distinct
Exists Exists
Functions Functions
Grant revoke Grant Revoke
Group by Oracle Group by
Having Having
Oracle Function in Oracle Function in
Indexes Indexes
Insert Insert
Intersect Intersect
Isnull Is null
Joins Joins
Substr Substr
 
Oracle Functions PLSQL  l Consulenza Software Verona  l  Siti Web Verona  l   Exceptions  l  Oracle Errors  l  Oracle Collaborations Suite  l  Products  l  Contact
Oracle errors ora