-- Associative Array Indexed by String
DECLARE
TYPE ASS_ARR1 IS TABLE OF NUMBER INDEX BY VARCHAR2(64);
ASS_ARR ASS_ARR1;
I VARCHAR2(63);
BEGIN ASS_ARR('a') := 1;
ASS_ARR('b') := 2;
ASS_ARR('c') := 3;
I := ASS_ARR.FIRST;
WHILE I IS NOT NULL LOOP
DBMS_OUTPUT.PUT_LINE('values of ' || I || ' is ' || ASS_ARR(I));
I := ASS_ARR.NEXT(I);
END LOOP;
END;