set serveroutput on
declare
VEno Emp.Eno%TYPE;
VESalary Emp.ESalary%TYPE;
cursor cremp is
select Eno, ESalary from Emp;
begin
open cremp;
fetch cremp into VEno,VESalary;
while cremp%found
loop
update Emp set ESalary = VESalary + VESalary * 0.1 where Eno = VEno;
fetch cremp into VEno,VESalary;
end loop;
close cremp;
end;
/
commit;
/
No comments:
Post a Comment
Thanks for showing your interest
I will shortly get back to you