How To Test NULL Values
How To Test NULL Values? - Oracle DBA FAQ - Understanding PL/SQL Language Basics
There ate two special comparison operators you can use on NULL values:
The following sample script shows you examples of comparing NULL values:
DECLARE next_task CHAR(80); BEGIN next_task := NULL; IF next_task IS NOT NULL THEN DBMS_OUTPUT.PUT_LINE('I am busy.'); ELSE DBMS_OUTPUT.PUT_LINE('I am free.'); END IF; IF next_task IS NULL THEN NULL; ELSE DBMS_OUTPUT.PUT_LINE('... working on ' || next_task); END IF; END;
Note that "variable = NULL" is not a valid operation. This script should print this:
I am free.
2007-04-29, 5147👍, 0💬
How To Merge Cells in a Row? - XHTML 1.0 Tutorials - Understanding Tables and Table Cells If you wan...
How do we assign page specific attributes ? Page attributes are specified using the @Page directive.
What is the difference between Class and structure’s ? Following are the key differences between the...
How To Assign Query Results to Variables? - Oracle DBA FAQ - Working with Database Objects in PL/SQL...
How to measure functional software requirement specification (SRS) documents? Well, we need to defin...