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