oracle 数组怎么用

jin_ok jin_ok 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
我声明了一个数组,不知怎样取出数组的值,操作表的字段
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条记录需要处理
...全文
评论 8
收藏 已收藏
分享
返回顶部
jin_ok
基础和管理 17,379 成员 95,111 内容