SQL>
SQL> DECLARE
2
3 TYPE numberVarray IS VARRAY(5)OF NUMBER;
4
5 v_numvarray numberVarray :=numberVarray(10,20,30,40);
6
7 BEGIN
8
9 dbms_output.put_line('The first element of v_numvarray is '|| TO_CHAR(v_numvarray(1)));
10 END;
11 /
The first element of v_numvarray is 10
PL/SQL procedure successfully completed.
SQL>
SQL>