Continue MERGE after EXCEPTION

后端 未结 2 804
悲&欢浪女
悲&欢浪女 2021-01-22 19:05

Is it possible to continue a MERGE after an EXCEPTION ?

MERGE INTO copy_emp c
     USING employees e
     ON (c.employee_id = e.employe         


        
2条回答
  •  温柔的废话
    2021-01-22 19:12

    There are several ways to avoid termination. I have been mostly using FORALL SAVE EXCEPTIONS clause.

    In Oracle Database 10g and higher, PL/SQL offers three options for “continuing past an exception,”which really means avoiding termination of the execution of the current block. Please read this excellent article by Steven Feuerstein, http://www.oracle.com/technetwork/issue-archive/2009/09-mar/o29plsql-085126.html

提交回复
热议问题