guys. Here's a simple sample two-dimensional array in PL/SQL, which is working perfectly.
declare
type a is table of number;
type b is table of a;
arr b := b(a(1, 2), a(3, 4));
begin
for i in arr.first .. arr.last loop
for j in arr(i).first .. arr(i).last loop
dbms_output.put_line(arr(i) (j));
end loop;
end loop;
end;
What I need to do, is to create something similar for a table of RECORDS
. Like this:
type a is record(a1 number, a2 number);
type b is table of a;
The question is, can I manually initialize this kind of array, or it is supposed to be filled by bulk collects
or similar? The same syntax as above doesn't seem to work, and I wasn't able to find any initialization sample in manuals.