oracle 数组怎么用
我声明了一个数组,不知怎样取出数组的值,操作表的字段
cursor c_test is select * from tbl_test;
TYPE myarray IS TABLE OF c_test%ROWTYPE;
cur_array myarray;
begin
open c_test;
loop
fetch c_test bulk collect into cur_array limit 100000;
exit when c_flight_info%notfound;
怎样取出数组里面的值呀?
end loop;
close c_flight_info;
exception
when others then
raise_application_error(-20199,'处理数据出错!');
return;
end;
另外limit参数的作用是什么?,我的表中有10W条记录需要处理
cursor c_test is select * from tbl_test;
TYPE myarray IS TABLE OF c_test%ROWTYPE;
cur_array myarray;
begin
open c_test;
loop
fetch c_test bulk collect into cur_array limit 100000;
exit when c_flight_info%notfound;
怎样取出数组里面的值呀?
end loop;
close c_flight_info;
exception
when others then
raise_application_error(-20199,'处理数据出错!');
return;
end;
另外limit参数的作用是什么?,我的表中有10W条记录需要处理
...全文


基础和管理
