在pl/sql中执行存贮过程

Posted on 2006-06-25 23:02  梦想追逐者  阅读(309)  评论(0)    收藏  举报
 declare
  Type t_Refcur Is Ref Cursor;
  p_cur t_Refcur;
 begin
    for x in (select cbry_code from t_code_comp_cbry where cbry_code not in ('0702','0703') ) loop
     begin
     -- Call the procedure
     Pro_Comp_Gy_Fssj_Nj(
                     p_cbqy => x.cbry_code,
                     p_yf => '20060628',
                     p_operateman => '0001',
                     p_operatedate => '2006-06-25',
                     p_operatemandeptcode => '00',
                     p_cur => p_cur);
                     commit;
     end;
    end loop ;
 end ;

博客园  ©  2004-2026
浙公网安备 33010602011771号 浙ICP备2021040463号-3