Oracle® Database PL/SQL Language Reference 11g Release 2 (11.2) Part Number E25519-05 |
|
|
PDF · Mobi · ePub |
A constant holds a value that does not change.
A constant declaration specifies the name, data type, and value of the constant and allocates storage for it. The declaration can also impose the NOT
NULL
constraint.
LNPLS1142Topics
LNPLS1023constant_declaration ::=
See:
LNPLS1143constant
Name of the constant that you are declaring.
LNPLS1144datatype
Data type for which a variable can be declared with an initial value.
LNPLS1145NOT NULL
Imposes the NOT
NULL
constraint on the constant. For information about this constraint, see "NOT NULL Constraint".
LNPLS1146expression
Initial value for the constant. expression
must have a data type that is compatible with datatype
. When constant_declaration
is elaborated, the value of expression
is assigned to constant
.
LNPLS1147In this chapter:
LNPLS1148In other chapters: