当前位置: 技术问答>java相关
help~~
来源: 互联网 发布时间:2015-04-18
本文导语: ヌ・ハネ郤ホヤレPL/SQLヨミア獎エヘャハアカヤチスクセンア晳ミミエネ・トエ惲・ A...
ヌ・ハネ郤ホヤレPL/SQLヨミア獎エヘャハアカヤチスクセンア晳ミミエネ・トエ惲・
イソキヨウフミ醯ツ
ヌ・クユ
FUNCTION f_ReSaveWork (
,i_checkc IN VARCHAR2
,i_excuse IN VARCHAR2
,i_approval IN VARCHAR2
,o_sts_code OUT NUMBER
,o_sts_err OUT VARCHAR2
) RETURN NUMBER;
IS
ret NUMBER := 0;
debug_path VARCHAR2(50) := '/tmp';
sqler_file VARCHAR2(50) := 'sqlerr.log';
BEGIN
o_sts_code := 0;
o_sts_err := NULL;
SELECT A.1212
,A.23123
,B.asdasd
FROM
asd A
,qwe B
WHERE A.zxc = B.zxc
AND B.vbn = B.vbn
INSERT
INTO A (
1212
,23123)
VALUES
(i_checkc
,i_excuse)
WHERE A.zxc = B.zxc
AND B.vbn = B.vbn
INSERT
INTO B (
asdasd
)
VALUES (i_approval)
WHERE A.zxc = B.zxc
AND B.vbn = B.vbn
ret := CM.CRNORMAL;
RETURN ret;
EXCEPTION
WHEN OTHERS
THEN
CMDBAC.p_ErrCatch( 'GI221700', 'f_DeleteWork' );
CMLGPT.p_DbErrPut( 'GI221700', 'f_DeleteWork', '用度ワークDELETE処理エラー', NULL );
o_sts_code := SQLCODE;
o_sts_err := SQLERRM;
CMDBAC.p_DebugPrt( 'GI221700.f_DeleteWork', SUBSTR(TO_CHAR(SQLCODE)||' '|| SQLERRM,1,256), debug_path, sqler_file );
RETURN CM.CRERROR;
END f_DeleteWork;
イソキヨウフミ醯ツ
ヌ・クユ
FUNCTION f_ReSaveWork (
,i_checkc IN VARCHAR2
,i_excuse IN VARCHAR2
,i_approval IN VARCHAR2
,o_sts_code OUT NUMBER
,o_sts_err OUT VARCHAR2
) RETURN NUMBER;
IS
ret NUMBER := 0;
debug_path VARCHAR2(50) := '/tmp';
sqler_file VARCHAR2(50) := 'sqlerr.log';
BEGIN
o_sts_code := 0;
o_sts_err := NULL;
SELECT A.1212
,A.23123
,B.asdasd
FROM
asd A
,qwe B
WHERE A.zxc = B.zxc
AND B.vbn = B.vbn
INSERT
INTO A (
1212
,23123)
VALUES
(i_checkc
,i_excuse)
WHERE A.zxc = B.zxc
AND B.vbn = B.vbn
INSERT
INTO B (
asdasd
)
VALUES (i_approval)
WHERE A.zxc = B.zxc
AND B.vbn = B.vbn
ret := CM.CRNORMAL;
RETURN ret;
EXCEPTION
WHEN OTHERS
THEN
CMDBAC.p_ErrCatch( 'GI221700', 'f_DeleteWork' );
CMLGPT.p_DbErrPut( 'GI221700', 'f_DeleteWork', '用度ワークDELETE処理エラー', NULL );
o_sts_code := SQLCODE;
o_sts_err := SQLERRM;
CMDBAC.p_DebugPrt( 'GI221700.f_DeleteWork', SUBSTR(TO_CHAR(SQLCODE)||' '|| SQLERRM,1,256), debug_path, sqler_file );
RETURN CM.CRERROR;
END f_DeleteWork;
|
你想说什么
您可能感兴趣的文章:
本站(WWW.)旨在分享和传播互联网科技相关的资讯和技术,将尽最大努力为读者提供更好的信息聚合和浏览方式。
本站(WWW.)站内文章除注明原创外,均为转载、整理或搜集自网络。欢迎任何形式的转载,转载请注明出处。
本站(WWW.)站内文章除注明原创外,均为转载、整理或搜集自网络。欢迎任何形式的转载,转载请注明出处。