我需要创建一个 varray,它的大小必须是过程的参数,例如
create or replace procedure x (cant number)
as
type arreglo is varray(cant) of number;
elarreglo arreglo :=arreglo();
begin
elarreglo(1):=(9);
....
....
end;
我尝试这样做,但它显示此错误:
LINE/COL ERROR
-------- -----------------------------------------------------------------
3/24 PLS-00103: Encountered the symbol "CANT" when expecting one of
the following:
<a number>
The symbol "<a number> was inserted before "CANT" to continue.
我做错了什么?可以做我正在尝试的事情吗?