variable
Syntax
variable [variable_name [data_type] [:= value]]
The syntax for binding multiple values to an array using the variable command
is as
follows:
variable array_name '[' array_size ']' data_type(n):= '[' value1, ... valuex ']'
Description
Declares a bind variable that can be referenced in a statement or displays the
definition of the variable if the type is missing. Type can be one of the following:
(n), NUMBER, CHAR(n),
NCHAR(n), VARCHAR2(n), NVARCHAR2(n),
BLOB, CLOB, NCLOB, or
REFCURSOR. If only (n) is supplied, it is assumed to be
VARCHAR2 (n).
Assigns a value to a single variable or multiple values if the data type is an
array. You can assign a value later with the setvariable command.
For more information, see Declaring and Setting Bind Variables in Oracle TimesTen In-Memory Database Operations Guide.
Examples
Command> variable a varchar2(30); Command> var arr[5] number := [ 1,2, 3 ];