A VARRAY is a type of collection in which each element is referenced by a positive integer called the array index. The maximum cardinality of the VARRAY is specified in the type definition.
The TYPE IS VARRAY statement is used to define a VARRAY collection type.
Syntax
TYPEvarraytypeIS VARRAY(n)OFdatatype;
Description
varraytype
An identifier that is assigned to the array type.
n
The maximum number of elements in the array type.
datatype
A supported data type, such as NUMBER, VARCHAR2, RECORD, VARRAY, or associative array type. The %TYPE attribute and the %ROWTYPE attribute are also supported.