Oracle存储包存储及案例
create or replace package S02_ZFRZPT_YS_MID is
procedure start_cal(strgranularity in varchar2, dtinputdt in varchar2);
procedure add_jydsxx_pt_mid (dtinputdt in varchar2);
end S02_ZFRZPT_YS_MID;
Package右侧文件:
create or replace package body S02_ZFRZPT_YS_MID is
procedure start_cal(strgranularity in varchar2,
--1日,2,3,4:月;5:季;6:半年;7:年
dtinputdt in varchar2) as
begin
--注释
add_jydsxx_pt_mid(dtinputdt);
end;
procedure add_jydsxx_pt_mid(dtinputdt in varchar2) as
begin
delete from s02_jydsxx_pt_mid t where t.statisticdate = dtinputdt;
commit;
end;
end S02_ZFRZPT_YS_MID;
郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。