日期:2014-05-16 浏览次数:20452 次
create or replace PROCEDURE "RAW_LOSEMONTH" ( dotime IN DATE) --输入参数 AS ammeterIdx VARCHAR2(30);--定义变量 BEGIN --定义游标 DECLARE CURSOR cursorbdz IS SELECT ammeterId FROM AMMETERINFO WHERE ammeterType='1'; BEGIN --for循环遍历游标 FOR c_temp IN cursorbdz LOOP ammeterIdx := c_temp.ammeterid; PROLOSEMONTH(ammeterIdx ,dotime);--调用另外一个存储过程 END LOOP; END; END RAW_LOSEMONTH;