">
Quick Search:
CODE
Oracle PL/SQL Code Library
JOBS
Find Or Post Oracle Jobs
FORUM
Oracle Discussion & Chat
 Oracle PL/SQL: IS NOT NULL Jump to:  
Category: >> Oracle PL/SQL >> IS NOT NULL Bookmark and Share

<< lastnext >>

Snippet Name: IS NOT NULL

Description: In PLSQL to check if a value is not null, you must use the "IS NOT NULL" syntax.

Also see:
» Data Types
» NVL

Comment: (none)

Language:
Highlight Mode: PLSQL
Last Modified: March 07th, 2009

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.
 
 


Free
Oracle Magazine
Subscriptions
and Oracle White Papers


SQL University.net courses meet the most demanding needs of the business world for advanced education in a cost-effective manner. SQL University.net courses are available immediately for IT professionals and can be taken without disruption of your workplace schedule or processes.

Compared to traditional travel-based training, SQL University.net saves time and valuable corporate resources, allowing companies to do more with less. That's our mission, and that's what we deliver.

Click here to find out more
 
Home      :      Code Library      :      Sponsors      :      Privacy      :      Terms of Use      :      Contact Us 253 users online    © 2009 psoug.org

PSOUG LOGIN
Username: 
Password: 
Forgot your password?