-
----- 光標 --包和主體------- 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 --打開光標 open empList for select * from emp where 1=1; END queryEmpList; END MYPACKAGE;查看全部
-
你好查看全部
-
訪問包中的存儲過程查看全部
-
包頭的內容查看全部
-
包體的內容查看全部
-
在out參數中使用光標查看全部
-
選用存儲函數和存儲過程的原則查看全部
-
參數在存儲過程和存儲函數中查看全部
-
in和out參數查看全部
-
要注意要有一個return子句,用于返回函數值查看全部
-
存儲函數的語法查看全部
-
創建存儲過程查看全部
-
存儲函數跟存儲過程查看全部
-
存儲過程和存儲函數查看全部
-
使用存儲函數、存儲過程的原則:如果只有一個返回值,用存儲函數;否則,就用存儲過程。查看全部
舉報
0/150
提交
取消