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, 2832🔥, 0💬
Popular Posts:
What Is a Parameter File in Oracle? A parameter file is a file that contains a list of initializatio...
How To Insert New Line Characters into Strings in SQL Server Transact-SQL? If you want to break a st...
How to put statements into a statement block in SQL Server Transact-SQL? You can put statements into...
How To Convert Numeric Expression Data Types using the CAST() Function in SQL Server Transact-SQL? I...
How to calculate the storage size of a JSON (JavaScript Object Notation) value using the JSON_STORAG...