|Oracle® Database PL/SQL Language Reference
12c Release 1 (12.1)
|PDF · Mobi · ePub|
A scalar variable stores a value with no internal components. The value can change.
A scalar variable declaration specifies the name and data type of the variable and allocates storage for it. The declaration can also assign an initial value and impose the
You reference a scalar variable by its name.
See "expression ::=".
Name of the variable that you are declaring.
Name of a scalar data type, including any qualifiers for size, precision, and character or byte semantics. For information about scalar data types, see Chapter 3, "PL/SQL Data Types".
NULL constraint on the variable. For information about this constraint, see "NOT NULL Constraint".
Value to be assigned to the variable when the declaration is elaborated.
variable must have compatible data types.