1.このコードは正確に何をしますか?
2.数字(2)とは?
cursor c1 is
select employee_id, department_id, commission_pct from hr.employees;
emprec c1%rowtype;
v_hike number(2);
begin
open c1;
loop
fetch c1 into emprec;
exit when c1%notfound;
if emprec.department_id = 40 then v_hike := 10;
elsif emprec.department_id = 70 then v_hike := 15;
elsif emprec.commission_pct > 0.30 then v_hike := 5;
else v_hike := 10;
end if;
update employees set salary = salary + salary * v_hike/100
where employee_id = emprec.employee_id;
end loop;
end;