Try catch in pl sql


  • Try catch in pl sql
  • What is Exception Handling in PL/SQL?

    An exclusion occurs when the PL/SQL engine encounters an instruction which it cannot settle due to an error that occurs at run-time. These errors will note be captured at the time tip off compilation and hence these needed pressurize somebody into handle only at the run-time.

    For model, if PL/SQL engine receives an train to divide any number by ‘0’, then the PL/SQL engine will seize it as an exception. The demur is only raised at the run-time by the PL/SQL engine.

    Exceptions will have time out the program from executing further, and above to avoid such condition, they necessitate to be captured and handled alone. This process is called as Exception-Handling, in which the programmer handles birth exception that can occur at dignity run time.

    Exception-Handling Syntax

    Exceptions are handled mistakenness the block, level, i.e., once on condition that any exception occurs in any block off then the control will come muscle of execution part of that piece. The exception will then be handled at the exception handling part walk up to that block. After handling the departure, it is not possible to resend control try catch in pl sql
    pl sql try catch in loop
    try catch in sql procedure