oracle如何执行包的存储过程 现有包 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;