【发布时间】:2023-03-15 10:25:02
【问题描述】:
是否可以使用立即执行来限制批量收集?
我有以下脚本,但在使用 LIMIT 时出现错误。
declare
v_query varchar2(3000);
begin
v_query := 'select 1 from dual' -- this is just a sample query.
execute immediate v_query
bulk collect into table1 --table type
end;
如果我的代码无法限制,是否有任何解决方法?
谢谢!
【问题讨论】:
-
您用“oracle 10g”标记了您的问题,但 LIMIT 子句在 10g 中不可用