TYPE Strings IS VARRAY(5) OF VARCHAR2(10)
SQL>
SQL> DECLARE
2 TYPE Strings IS VARRAY(5) OF VARCHAR2(10);
3 v_List Strings := Strings('One', 'Two', 'Three', 'Four');
4 BEGIN
5 v_List(2) := 'TWO';
6
7 v_List.EXTEND;
8 v_List(5) := 'Five';
9
10 v_list.EXTEND;
11 END;
12 /
DECLARE
*
ERROR at line 1:
ORA-06532: Subscript outside of limit
ORA-06512: at line 10
SQL>
SQL>
Related examples in the same category