emp表中對全部僱員按他們基本薪水的10%給他們加薪, -- 若是所增長後的薪水大於5000,則取消加薪。

declare   cursor s3 is     select * from emp;   v_res emp%rowtype;   v_s   emp.ename%type; begin   open s3;   fetch s3     into v_res;   loop     exit when s3%notfound;     update emp set sal = sal *
相關文章
相關標籤/搜索