最近中文字幕高清中文字幕无,亚洲欧美高清一区二区三区,一本色道无码道dvd在线观看 ,一个人看的www免费高清中文字幕

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

我寫完之后執(zhí)行sql,跑存儲的時候會報數(shù)據(jù)未找到錯誤,后來我加上 exception when no_data_found then sal := 1;沒有報錯了,但是在命令里面執(zhí)行成功之后沒有打印除結(jié)構(gòu)

create or replace procedure salarys(egh in number)

as


? ? ? ?--定義一個變量保存漲前薪水

? ? ? ?sal emp.salary%type;


begin

? ? ? ?

? ? ? ?--得到員工漲前的薪水

? ? ? ?select salary into sal from emp where employee = egh;

? ? ? ?exception?

? ? ?when no_data_found then?

? ? ? ? sal := 1;

? ? ? ?

? ? ? ?--給該員工漲100

? ? ? ?update emp set salary = salary+100 where employee = egh;

? ? ? ?

? ? ? ?--打印

? ? ? ?dbms_output.put_line('漲前:'||sal||'漲后:'||(sal+100));


end;

/


正在回答

2 回答

emp表的兩個字段改名了嘛,而且in number 可以讀取字符串嗎

0 回復(fù) 有任何疑惑可以回復(fù)我~

應(yīng)為你在命令里面執(zhí)行前沒有打開屏幕輸出開關(guān), ? 寫打開,再去執(zhí)行存儲過程, ?打開的語句set serveroutput on

2 回復(fù) 有任何疑惑可以回復(fù)我~

舉報

0/150
提交
取消

我寫完之后執(zhí)行sql,跑存儲的時候會報數(shù)據(jù)未找到錯誤,后來我加上 exception when no_data_found then sal := 1;沒有報錯了,但是在命令里面執(zhí)行成功之后沒有打印除結(jié)構(gòu)

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

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

幫助反饋 APP下載

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

公眾號

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