-- Exception test declarev_ename EMP. empno % type; -- defines the variable beginselect ename into v_ename from EMP where empno = & gno; dbms_output.put_line ('name: '| v_ename ); exception when no_data_found then dbms_output.put_line ('unfound');
1>>>>> exception error Handling1 > Pre-defined exception handling Partial ORACLE exception errors for predefined descriptions The handling of such exceptions is simply to refer to the exception-handling section of the PL/SQL block, directly
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
In the process of operation, it is sometimes necessary to send the data result set of SQL query in HTML form, so it is necessary to stitch the result set of SQL query into HTML code. There are usually two different ways to do this. One is to use the
PL/SQL smart call stack Analysis
PL/SQL smart call stack Analysis
The three DBMS_UTILITY functions(DBMS_UTILITY.FORMAT_CALL_STACK, DBMS_UTILITY.FORMAT_ERROR_STACK, and DBMS_UTILITY.FORMAT_ERROR _ BACKTRACE) have been crucial aids in diagnosing and
PL/SQL exceptions
The pre-defined exceptions and codes of PL/SQL are as follows:Exception Oracle error sqlcode Value MeaningAccess_into_null ORA-06530-6530 the referenced object is assigned directly to the object without InitializationCase_not_found
Summarized as follows:dbms_utility. Format_call_stack -This was introduced in Oracle7, dbms_utility. Format_call_stack this built-in function returns a formatted string that shows the execution call stack: The sequence of calls to all procedures or
PLSQL variables can be of the following four types:
-Scalar)
-Composite)
-Reference)
-Lob type (large object)
1. scalar type:-Only variables with a single value can be stored.-When defining a scalar, you must specify the data type.
1.1 common
Joke: In entering the company for a period of time, will always meet a variety of small problems, but finally still "looking for Niang, ask Google" solutionThe decision. But recently the company introduced a few new recruits, small problems a bunch
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.