Thanks for the question.
Asked: June 12, 2008 - 9:53 am UTC
Last updated: June 12, 2008 - 4:04 pm UTC
Version: 9.0.1
Viewed 10K+ times! This question is
ops$tkyte%ORA10GR2> declare 2 abc ASSOC.ASSOC_ARRAY := ASSOC.ASSOC_ARRAY('Steve', 'Paul' ); 3 begin 4 dbms_output.put_line( assoc.f_assoc_array(abc) ); 5 end; 6 / 'Steve','Paul') PL/SQL procedure successfully completed.
create type associative_array as table of number index by varchar2(30);
l_data('Steve') := 42; l_data('Paul' ) := 55;
Steve Vickery, June 13, 2008 - 5:32 am UTC
srp, May 14, 2009 - 11:33 am UTC
Check out more PL/SQL tutorials on our LiveSQL tool.
PL/SQL reference manual from the Oracle documentation library