create procedure test
(p_b in number ,
 p_mount in number)
as
 l_a number(32);
cursor tes1 is
select a  from test
where b=P_b;begin
  l_b:=0;
 for j in test1 loop
if  l_b<p_mount then
   l_b=l_b+j.a;
 else
DBMS_OUTPUT.PUT_LINE(l_b);
end if;
  end loop;
end;各位帮忙看一下这个存储过程,打???号都不知道错在那。