Using PL/SQL, suppose we've declared a nested table type and its instance as follows:
type nested_tab is table of pls_integer;
We are then able to initialize our nested table as follows:
tab := nested_tab(1, 2, 3);.
Is there something similar we can do to initialize an associative array?
In other words, for the following associate array:
type associative_tab is table of varchar2(100) index by pls_integer;
is there a shorter way than this:
a_tab(1) := 'hello';
a_tab(2) := 'world';
a_tab(100) := '100th string';