I have just started to use "COLLECTIONS" and therefore still a little confused and need help.
I have the following PL/SQL code snippet:
TYPE DQRY IS OBJECT( TNAME VARCHAR2(20), XPRCL VARCHAR2(250));
TYPE DTBL IS TABLE OF DQRY INDEX BY VARCHAR2(4);
xtbl DTBL:
How do I populate the OBJECT 'DQRY' in the TABLE "DTBL"?
My end goal is to have a record that looks like this:
xtbl('CP") = dqry(' CASRP ', ' CP_BOOK_NUM || CP_MAP_NUM || CP_ITEM_NUM = ')
In other words, i want to have a 'TNAME' and a 'XPRCL' for a specific two character code.
And just to cover all my basses, how do i retrieve 'TNAME' and a 'XPRCL' for a specific code (e.g. "CP")?