課程
/數(shù)據(jù)庫(kù)
/Oracle
/Oracle數(shù)據(jù)庫(kù)開(kāi)發(fā)必備利器之PL/SQL基礎(chǔ)
為什么我不到字符串的輸出結(jié)果呢?要怎么弄?
2016-12-24
源自:Oracle數(shù)據(jù)庫(kù)開(kāi)發(fā)必備利器之PL/SQL基礎(chǔ) 2-1
正在回答
set serveroutput on 打開(kāi)輸出開(kāi)關(guān);
accept num prompt '請(qǐng)輸入一個(gè)數(shù)字';
-- 上面是sql developer中的用法
declare
score number := #
begin
? if score=1 then dbms_output.put_line('你輸入的數(shù)字是1;');
? elsif score=2 then dbms_output.put_line('你輸入的數(shù)字是2');
? else dbms_output.put_line('你輸入的數(shù)字是0');
? end if;
end;
舉報(bào)
Oracle數(shù)據(jù)庫(kù)高級(jí)開(kāi)發(fā)必備的基礎(chǔ),通過(guò)實(shí)例帶你熟練掌握
1 回答顯示16行出錯(cuò)?
3 回答為什么初始值是0,然后每個(gè)+1后輸出的結(jié)果成這樣的呢
4 回答文字說(shuō)明符
2 回答輸出不懂不是1—10
1 回答為什么結(jié)果和老師的情況不一樣
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號(hào)-11 京公網(wǎng)安備11010802030151號(hào)
購(gòu)課補(bǔ)貼聯(lián)系客服咨詢優(yōu)惠詳情
慕課網(wǎng)APP您的移動(dòng)學(xué)習(xí)伙伴
掃描二維碼關(guān)注慕課網(wǎng)微信公眾號(hào)
2016-12-27
set serveroutput on 打開(kāi)輸出開(kāi)關(guān);
accept num prompt '請(qǐng)輸入一個(gè)數(shù)字';
-- 上面是sql developer中的用法
declare
score number := #
begin
? if score=1 then dbms_output.put_line('你輸入的數(shù)字是1;');
? elsif score=2 then dbms_output.put_line('你輸入的數(shù)字是2');
? else dbms_output.put_line('你輸入的數(shù)字是0');
? end if;
end;