begin
select ....
update test set sal = sal * (1 + 10%) where empnp = yno; --這裡應該是加薪10%,話說加薪不是在表中修改數據麼?
if month_between(date1,date2) > 60 then --month_between()函數中參數應該是Date類型的吧?
update .... --額外加薪..
else
....
end if;
end;