memory:例如設(shè)置open cursor=400,只更改當(dāng)前的程序的設(shè)置,不更改數(shù)據(jù)參數(shù),意思是這次的設(shè)置操作只對(duì)當(dāng)前程序有效,如果服務(wù)器重啟就open cursor還是300;
spfile:這個(gè)就是只改服務(wù)器參數(shù),不改當(dāng)前程序的open cursor的值,所以當(dāng)前程序還是300,而服務(wù)器配置是400,所以老師說(shuō)服務(wù)器重啟后才生效
both:就是兩個(gè)都當(dāng)即生效,好好理解一下
spfile:這個(gè)就是只改服務(wù)器參數(shù),不改當(dāng)前程序的open cursor的值,所以當(dāng)前程序還是300,而服務(wù)器配置是400,所以老師說(shuō)服務(wù)器重啟后才生效
both:就是兩個(gè)都當(dāng)即生效,好好理解一下
你們都沒(méi)出錯(cuò)嗎。
我這里elseif 不能連著寫,必須寫成else if。
還有每個(gè)if后面必須以end if;結(jié)尾,也就是說(shuō)上面少了兩個(gè)end if;。
我這里elseif 不能連著寫,必須寫成else if。
還有每個(gè)if后面必須以end if;結(jié)尾,也就是說(shuō)上面少了兩個(gè)end if;。
2017-06-14
command window界面寫錯(cuò)代碼紅色的波浪線怎么破?看著賊難受
2017-06-10
關(guān)鍵是老師是站在學(xué)生的角度教學(xué),所以容易聽(tīng)懂,就好像你給剛識(shí)字的小朋友講1+1=2,你認(rèn)為很好懂,那是你站在大人角度看,你的站在小朋友角度講,這樣他更容易懂
2017-06-08
loop
fetch emp_cursor into cempno,csal ;
exit when (totalSal + csal*0.1) > 50000 or emp_cursor%notfound;
update emp set sal=sal*1.1 where empno=cempno;
countsum:=countsum+1;
totalsal:=totalsal+csal*0.1;
end loop;
fetch emp_cursor into cempno,csal ;
exit when (totalSal + csal*0.1) > 50000 or emp_cursor%notfound;
update emp set sal=sal*1.1 where empno=cempno;
countsum:=countsum+1;
totalsal:=totalsal+csal*0.1;
end loop;
2017-06-06
loop
exit when (totalSal + psal*0.1) > 50000;
fetch emp_cursor into cempno,csal ;
exit when emp_cursor%notfound;
update emp set sal=sal*1.1 where empno=cempno;
countsum:=countsum+1;
totalsal:=totalsal+csal*0.1;
end loop;
exit when (totalSal + psal*0.1) > 50000;
fetch emp_cursor into cempno,csal ;
exit when emp_cursor%notfound;
update emp set sal=sal*1.1 where empno=cempno;
countsum:=countsum+1;
totalsal:=totalsal+csal*0.1;
end loop;
2017-06-06