type AN_Index is table of integer index by binary_integer;
type AN_Record is RECORD (
IND AN_Index
);
type BN_Index is table of AN_Record index by binary_integer;
comes up with a
Code:
PLS-00507: a PLSQL Table may not contain a table or a record with composite fields
That's true - PL/SQL just doesn't support multi-dimensional arrays - because you don't usually run into the need for those when dealing with a relational database. What you have are rows (records) and columns (fields) - and the TABLE and RECORD constructs in PL/SQL allow you to deal with those things. I know that this no help when your situation is different from what is "usual". You could look into using collections and/or nested tables, but these are still basically 1-dimensional.
i think i'm gonna have to hash the 2 id's together ...
select power(10,length(max(an_id))+1) into v_multiplier from an_table;
for each_row in c_cursor loop
v_hash := each_row.bn_id * v_multiplier + each_row.an_id;
...
end loop;
ugly, but it'll probably work out ok. as long as i never have more than a total of about 9 digits in the 2 keys ... and i think i'll leave the company and travel to mars before then.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.