SQL>
SQL>
SQL> declare
2 Type numberTableType is TABLE OF NUMBER;
3
4 v_numarray numberTableType;
5
6 begin
7
8 v_numarray :=numberTableType(10,20,30,40);
9
10 dbms_output.put_line(to_char(v_numarray(1))||', '||to_char(v_numarray(2))||', '||to_char(v_numarray(3))||', '||to_char(v_numarray(4)));
11
12 dbms_output.put_line(to_char(v_numarray(5)));
13 end;
14 /
10, 20, 30, 40
declare
*
ERROR at line 1:
ORA-06533: Subscript beyond count
ORA-06512: at line 12
SQL>
SQL>