oracle 写存储过程有返回值时 注意在loop循环处添加返回值:=

例子:

create or replace procedure p_xl is

v_count NUMBER(10);

begin
for rs in
(select yhbh from dbyh) loop
v_count := osm_pkg_arc_limited_configs.F_LIMITED_METERS_CREATE('rs.yhbh',
10001,---限量用水id
sysdate,
201706,
0.00,
10000);

end loop;
commit;
end p_xl;

原文地址:https://www.cnblogs.com/steel-chen/p/7085963.html