declare
result_code varchar2(400);
result_info varchar2(400);
begin
for i in 20170420 .. 20170430 loop
--循环体
P_JH_AUDIT_ECS_ALL(i,result_code ,result_info );
dbms_output.put_line(i);
dbms_output.put_line(result_code);
dbms_output.put_line(result_info);
end loop;
end;
result_code varchar2(400);
result_info varchar2(400);
begin
for i in 20170420 .. 20170430 loop
--循环体
P_JH_AUDIT_ECS_ALL(i,result_code ,result_info );
dbms_output.put_line(i);
dbms_output.put_line(result_code);
dbms_output.put_line(result_info);
end loop;
end;