Skip to content

Commit 552ad93

Browse files
Update varray_02.sql
1 parent c6121a7 commit 552ad93

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

varray_02.sql

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ BEGIN
2121

2222
-- TRIM removes last element and TRIM(n) removes n elements from the array.
2323
-- trim last 2 elements.
24-
v1.trim(2);
24+
v1.trim(2);
2525
dbms_output.put_line('Iterating varray v1 again, after doing triming last 2');
2626
FOR i IN 1..v1.count LOOP
2727
dbms_output.put_line('Index : '
@@ -31,13 +31,13 @@ BEGIN
3131
END LOOP;
3232

3333
-- adding elements again
34-
v1.extend(3);
34+
v1.extend(3);
3535
v1(3) := 300;
3636
v1(4) := 303;
3737
v1(5) := 306;
3838
--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}
3939

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');
4141
FOR i IN 1..v1.count LOOP
4242
dbms_output.put_line('Index : '
4343
|| i
@@ -47,7 +47,7 @@ BEGIN
4747

4848
dbms_output.put_line('Deleteing varray v1. It will delete all elements of varray');
4949
--Varrays are dense, so you cannot delete their individual elements
50-
v1.DELETE;
50+
v1.DELETE;
5151
dbms_output.put_line('Count of varray v1: ' || v1.count);
5252
END;
5353
/

0 commit comments

Comments
 (0)