第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時綁定郵箱和手機立即綁定

根據(jù)老師的結(jié)果為什么要手動執(zhí)行幾次循環(huán)?有沒有什么辦法讓程序自動重復(fù)執(zhí)行

declare

? cursor cemp is

? ? select empno, sal from emp;

? cempno? ?emp.empno%type;

? csal? ? ?emp.sal%type;

? empcount number := 0;

? totalsal number;

begin

? open cemp;

? select sum(sal) into totalsal from emp;

? loop

? ? fetch cemp

? ? ? into cempno, csal;

? ? --判斷漲后工資是否超過5萬

? ? exit when totalsal + csal * 0.1> 50000;

? ? update emp set sal = sal + sal * 0.1 where empno = cempno;

? ? exit when cemp%notfound;

? ? empcount := empcount + 1;

? ? --漲后工資總額

? ? totalsal := totalsal + csal * 0.1;

? end loop;

? close cemp;

? dbms_output.put_line('漲工資人數(shù): ' || empcount || '? 總工資: ' || totalsal);

end;


正在回答

舉報

0/150
提交
取消

根據(jù)老師的結(jié)果為什么要手動執(zhí)行幾次循環(huán)?有沒有什么辦法讓程序自動重復(fù)執(zhí)行

我要回答 關(guān)注問題
微信客服

購課補貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學(xué)習(xí)伙伴

公眾號

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號