现有包
CREATE OR REPLACE PACKAGE PKG_AllConsumeBlock is
TYPE myrctype IS REF CURSOR;
PROCEDURE usp_AllConsumeBlock(cur_out OUT myrctype,StartMth char,FinishiMth char);
end PKG_AllConsumeBlock;
包体
CREATE OR REPLACE PACKAGE BODY PKG_AllConsumeBlock AS
PROCEDURE usp_AllConsumeBlock
(
cur_out OUT myrctype,StartMth char,FinishiMth char
)
IS
BEGIN
OPEN cur_out FOR
SELECT * from 表名 where 条件 ;
END usp_AllConsumeBlock;
END PKG_AllConsumeBlock;
请问该如何调用来进行查询?谢谢各位了
------解决方案--------------------
代码迷推荐解决方案:oracle存储过程,http://www.daimami.com/search?q=177537