Oracle Developer is famous for its rapid data processing and development, and its exception handling mechanism is also relatively complete.
1. Advantages of exceptions
If no exception occursProgramCheck whether each command succeeds or fails,
PL/SQL Exception handling method 1: What is exception handling: PL/SQL provides a function to handle exceptions, called exception Handling in PL/SQL blocks, using exception handling we are able to test code and avoid exception exits. PL/SQL
PL/SQL Exception Handling Method 1: What is Exception Handling? PL/SQL provides a function to handle exceptions, which is called Exception Handling in PL/SQL blocks, with exception handling, we can test the code and avoid abnormal exit. The PL/SQL
When an error occurs during database or PLSQL running, an exception is automatically thrown by the engine when PLSQL is running. oracle has three methods to throw an exception. If you need to know about it, you can read this article.
When an error
I. OverviewExceptions fall into three main categories: predefined exceptions, non-predefined exceptions, custom exceptionsThe processing method is divided into: Direct throw exception, internal block handling exception, cursor handling
There are three different ways to throw an exception
1. Run-time engine via Pl/sql
2. Using the Raise statement
3. Call Raise_application_error Stored Procedure
When a database or Pl/sql error occurs at run time, an exception is thrown
PL/SQL development that little thing----->pl/sql exception handling during developmentA user-written PL/SQL block inevitably has some errors during execution.The errors involved are not caused by the syntax errors of the program, but because the
Throws an exception in three different ways 1. Through the PL/SQL run-time engine 2. Using the Raise statement 3. Call the raise_application_error stored procedure When a database or PL/SQL error occurs at run time, an exception is
Exception in Oracle
1. Advantages of exceptions
If no exception exists, check whether each command succeeds or fails in the program, as shown in figure
Begin
Select...
-- Check for 'no data found 'Error
Select...
-- Check for 'no data found
Exception error HandlingA good program should be able to properly handle all kinds of error situations and recover from them as much as possible. ORACLE provides exception conditions (EXCEPTION) and exception handling (EXCEPTION HANDLER) for
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.