Oracle存储过程Procedure语法及案例

create or replace procedure replace(desstr           in varchar2,
                                    replacestr       in varchar2,
                                    tablename        in varchar2,
                                    strgranularity   in varchar2,
                                    strorgankey      in varchar2,
                                    strstatisticdate in date) is
begin
  update t41_systemcal_upday t1
     set t1.calchar = replace(t1.calchar, desstr, replacestr)
   where t1.itemkey like tablename
     and t1.granularity = strgranularity
     and t1.statisticdate = strstatisticdate
     and t1.organkey = strorgankey;
end replace;
posted @ 2014-07-24 20:24  wanghx  阅读(603)  评论(0编辑  收藏  举报