File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 21
21
22
22
-- TRIM removes last element and TRIM(n) removes n elements from the array.
23
23
-- trim last 2 elements.
24
- v1 .trim (2 );
24
+ v1 .trim (2 );
25
25
dbms_output .put_line (' Iterating varray v1 again, after doing triming last 2' );
26
26
FOR i IN 1 ..v1 .count LOOP
27
27
dbms_output .put_line (' Index : '
@@ -31,13 +31,13 @@ BEGIN
31
31
END LOOP;
32
32
33
33
-- adding elements again
34
- v1 .extend (3 );
34
+ v1 .extend (3 );
35
35
v1(3 ) := 300 ;
36
36
v1(4 ) := 303 ;
37
37
v1(5 ) := 306 ;
38
38
-- v1(6):= 400; --{'Subscript outside of limit' exception occured if value assiged for 6th index. You cannot do that, as array size is fixed for 5}
39
39
40
- dbms_output .put_line (' Iterating varray v1 again, after adding new elements' );
40
+ dbms_output .put_line (' Iterating varray v1 again, after adding new elements' );
41
41
FOR i IN 1 ..v1 .count LOOP
42
42
dbms_output .put_line (' Index : '
43
43
|| i
47
47
48
48
dbms_output .put_line (' Deleteing varray v1. It will delete all elements of varray' );
49
49
-- Varrays are dense, so you cannot delete their individual elements
50
- v1 .DELETE ;
50
+ v1 .DELETE ;
51
51
dbms_output .put_line (' Count of varray v1: ' || v1 .count );
52
52
END;
53
53
/
You can’t perform that action at this time.
0 commit comments