SQL>set serveroutput on;
SQL> declare
  2  type my_type is table of varchar2(12) index by binary_integer;
  3  v_mytype my_type;
  4  var varchar2(6);
  5  begin 
  6   v_mytype(1):='六天王';
  7  v_mytype(5):='李';
  8  v_mytype(-1):='刘';
  9  var:=v_mytype(1);
 10  var:=v_mytype(5);
 11  var:=v_mytype(-1);
 12  dbms_output.put_line('引用的索引表的值是:'||var);
 13  end;
 14  /