declare
vTemp number := 0;
begin
while vTemp = 0
loop
declare
cursor cur_sal is select sal from emp order by sal for update of sal;
vSum number;
begin
for dz in cur_sal
loop
select sum(sal) into vSum from emp;
if (vSum + dz.sal*0.2) <= 100000 then
update emp set sal = sal * 1.2 where current of cur_sal;
else
vTemp := 1;
exit;
end if;
end loop;
end;
--exit when vTemp = 1;
end loop;
end;
这是我根据题目写的代码 可总是死循环 请大家帮忙看看是哪里的问题