oracle 存儲過程返回數組的方法
create or replace package test is
TYPE filename_array IS TABLE OF varchar
filename filename_array;
end test;
create or replace procedure test_array(v_cfjg out test
begin DECLARE i number;
D_cfjg dic_cfjg%rowTYPE;
cursor c
BEGIN
i:=
v_cfjg := test
open c
LOOP fetch c
EXIT WHEN c
i:=i+
v_cfjg
v_cfjg(unt):=D_cfjg
DBMS_OUTPUT
END LOOP;
end;
EXCEPTION
WHEN TOO_MANY_ROWS THEN
DBMS_OUTPUT
WHEN OTHERS THEN DBMS_OUTPUT
end test_array;
From:http://tw.wingwit.com/Article/program/Oracle/201311/18265.html