本帖最后由 lixiaolong09 于 2010-12-13 13:49:56 编辑

解决方案 »

  1.   


    create or replace type type_splitArr IS TABLE OF VARCHAR2(4000);
      

  2.   

    -------不可以使用create or replace的方式创建关联数组,你直接写在你的存储过程或者是函数中做局部引用就行了,下面是例子
    http://yy-mm-dd.javaeye.com/admin/blogs/831889
      

  3.   

    测试
    declare
      type type_splitArr IS TABLE OF VARCHAR2(200) index by binary_integer;
      tt type_splitArr;
    begin
      dbms_output.put_line('111');
    end;
      

  4.   

    ---别乱说
      1* create or replace type type_splitArr IS TABLE OF VARCHAR2(4000);
    scott@ORCL> /类型已创建。scott@ORCL> create or replace type type_splitArr IS TABLE OF VARCHAR2(4000);
      2  /类型已创建。