USING (SELECT * FROM TEMPL) T
ON (M.SECTION_ID = T.SECTION_ID AND M.DOCNUMBR = :P6_DOC)
WHEN MATCHED
THEN
UPDATE SET M.M_NAME = T.M_NAME, M.MODIFYDT = SYSDATE
WHEN NOT MATCHED
THEN
INSERT (SECTION_ID, COM, DOCNUMBR)
VALUES (T.SECTION_ID, T.COM, :P6_DOC);
COMMIT;
No comments:
Post a Comment