復制代碼 代碼如下:
declare
i integer;
TYPE t_table IS TABLE OF VARCHAR
v_t_table t_table;
TYPE t_pg
v_pg
c_pg
v_str VARCHAR
begin
OPEN c_pg
FETCH c_pg
FOR i IN
v_t_table(v_pg
END LOOP;
v_str := v_t_table
WHILE v_str is NOT NULL LOOP
dbms_output
v_str := v_t_table
END LOOP;
EXCEPTION WHEN OTHERS THEN
dbms_output
END;
From:http://tw.wingwit.com/Article/program/Oracle/201404/30547.html