-
----- 光標(biāo) --包和主體------- CREATE OR REPLACE PACKAGE MYPACKAGE AS /* TODO enter package declarations (types, exceptions, methods etc) here */ type empcursor is ref cursor; procedure queryEmpList(dno in number,empList out empcursor); END MYPACKAGE; CREATE OR REPLACE PACKAGE BODY MYPACKAGE AS procedure queryEmpList(dno in number,empList out empcursor) AS BEGIN --打開光標(biāo) open empList for select * from emp where 1=1; END queryEmpList; END MYPACKAGE;查看全部
-
你好查看全部
-
訪問包中的存儲(chǔ)過程查看全部
-
包頭的內(nèi)容查看全部
-
包體的內(nèi)容查看全部
-
在out參數(shù)中使用光標(biāo)查看全部
-
選用存儲(chǔ)函數(shù)和存儲(chǔ)過程的原則查看全部
-
參數(shù)在存儲(chǔ)過程和存儲(chǔ)函數(shù)中查看全部
-
in和out參數(shù)查看全部
-
要注意要有一個(gè)return子句,用于返回函數(shù)值查看全部
-
存儲(chǔ)函數(shù)的語法查看全部
-
創(chuàng)建存儲(chǔ)過程查看全部
-
存儲(chǔ)函數(shù)跟存儲(chǔ)過程查看全部
-
存儲(chǔ)過程和存儲(chǔ)函數(shù)查看全部
-
使用存儲(chǔ)函數(shù)、存儲(chǔ)過程的原則:如果只有一個(gè)返回值,用存儲(chǔ)函數(shù);否則,就用存儲(chǔ)過程。查看全部
舉報(bào)
0/150
提交
取消