A local variable is a variable that is defined in an SQL routine. You use local variables to temporarily store and retrieve values as needed in the logic of the routine. Local variables are used for such things as:
Local variables can only be referenced within the body of the SQL routine in which they are defined.
A local variable is defined by a variable-declaration statement that is included in a compound statement within an SQL routine body. The declaration of a local variable consists of the specification of its name, data type, and optionally its initial value.
Note: For more information about declaring local variables, see Compound Statement.
|
Copyright © 2014 CA.
All rights reserved.
|
|