CREATE OR REPLACE PROCEDURE UP_ACCOUNT_TICKET(P_ACCOUNTS_CODE IN VARCHAR2,
P_ACCOUNTS_DATE IN VARCHAR2,
R_RETURNMSG OUT VARCHAR2,
R_RETURN OUT VARCHAR2) AS
BEGIN
R_RETURNMSG:='OK';
R_RETURN := '0000';
EXCEPTION
rollback;
WHEN OTHERS THEN
R_RETURNMSG := R_RETURNMSG||';'||SUBSTR(TO_CHAR(SQLCODE) || SQLERRM,1,400);
R_RETURN := '9999';
END UP_ACCOUNT_TICKET;
或者里面加判断:
if v_count=0 then
update TS_D_RPT_ACCOUNTS_RESULT@DL_UCR_RPT a
set a.state = '1'--0未完成,1完成
where a.end_time = v_mdate and a.proc_type = '01';
vo_return:=0;
vo_message:='无差异';
else
vo_return:=999;
vo_message:='有差异!';
end if;
阅读(1437) | 评论(0) | 转发(0) |