Exception in Oracle
Exception Handling:- PL/SQL provides a features to handle the exceptions which occurs in a PL/SQL block known as exception handling using exception handling we can test the code and avoid it from exiting abruptly It’s is called Exception handling. When an exception occurs a messages which explain its cause is received PL/SQL exception massage consists of two parts. Types of exception 1) System exception 2) User-defined exception Syntax:- EXCEPTION When exceptionname then --code to handle exception. 1) System Exception: ==> System Exception can be further divided into two parts: 1. Named exceptions 2. Numbered exceptions 1) Named exception: ==> Particular name given to some common system exceptions is known as Named Exceptions. ==> Named system exceptions are exceptions that have been given names by PL/SQL. They are named in the STANDARD package in PL/SQL and do not need to be defined by the programmer. ==> Oracle has def...