17,086
社区成员
发帖
与我相关
我的任务
分享
CREATE OR REPLACE TYPE testtbl_table_type IS TABLE OF testtbl%ROWTYPE;
/
declare
testtbl_table testtbl_table_type:=testtbl_table_type();
begin
for c_testtbl in (select A,B,C from TestTBL) loop
testtbl_table.extend;
testtbl_table(testtbl_table.count).a:=c_testtbl.a;
testtbl_table(testtbl_table.count).b:=c_testtbl.b;
testtbl_table(testtbl_table.count).c:=c_testtbl.c;
end loop;
end;