Collections:
What Is NULL in PL/SQL in Oracle
What Is NULL in PL/SQL in Oracle?
✍: FYIcenter.com
NULL is a reserved key word and it stands for two things in PL/SQL:
The following sample script shows you examples of using NULL keyword:
DECLARE
next_task CHAR(80);
BEGIN
next_task := NULL; -- NULL value
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; -- NULL statement
ELSE
DBMS_OUTPUT.PUT_LINE('... working on ' || next_task);
END IF;
END;
This script should print this:
I am free.
⇐ Use "FOR" Loop Statements in Oracle
2018-07-13, 3140🔥, 0💬
Popular Posts:
How To Escape Special Characters in SQL statements in MySQL? There are a number of special character...
Where to find answers to frequently asked questions on PHP Connections and Query Execution for MySQL...
How To Convert Numeric Values to Character Strings in MySQL? You can convert numeric values to chara...
How To Start the Command-Line SQL*Plus in Oracle? If you Oracle server or client installed on your w...
How To Format Time Zone in +/-hh:mm Format in SQL Server Transact-SQL? From the previous tutorial, y...