Read about how to declare cursor in oracle stored procedure, The latest news, videos, and discussion topics about how to declare cursor in oracle stored procedure from alibabacloud.com
ORACLE stored procedure details, oracle Stored ProcedureORACLE Stored Procedure explanation 1. Definition
A Stored Procedure is a set of SQL statements used to complete specific database functions. The SQL statement set is compiled and Stored in the
Today, we will briefly summarize the usage of cursor in PL/SQL.
Cursor category:
-- Explicit cursor-- Static cursor |
| -- Implicit cursorCursor |-- Strong type (Restriction), specifying the return type-- Dynamic Cursor -- ref cursor |-- Weak type
ORACLE 11G traverses the cursor in the stored procedure, calls the scheduled execution of job tasks, and 11 gjob
Cursor traversal and scheduled job execution in ORACLE stored procedures
1. First, use the For Loop
For Loop is a simple and practical
Oracle stored procedures, declaring variables, for loops1. Create a stored procedureCreate or Replace procedure test (var_name_1 in type,var_name_2 out type) as--Declaring variables (variable name variable type)Begin--The execution body of the
1. IntroductionSQL is a collection-oriented language, and the result is generally a collection (with multiple records), and the PL-SQL variable is a scalar, a set of variables can only hold one record at a time. Many times the number of records for
There are two implementation methods for returning a cursor from an Oracle stored procedure. One is to declare a system cursor and the other is to declare a custom cursor. This article will introduce it in detail. For more information, see
There are
The difference among Cursor, hidden Cursor, and dynamic Ref Cursor is displayed in PLSQL. plsqlref1. Explicit cursorExplicit is relative to implicit cursor, that is, there is a clear declared cursor. The declaration of an explicit cursor is similar
Transferred from: http://developer.hi.baidu.com/#/detail/15344654this day's simple summary of the usage of cursor (cursor/cursor) in pl/ SQL.
I believe many DBAs who are engaged in development or maintenance have encountered similar face-to-face
Problems encountered at work:
1. There is a custom dictionary table: mdl_class_js
This table stores the names of many other tables (called resource tables). (In the mdl_class_js table, fields: table_name are used to represent these resource
Today, we will briefly summarize the usage of cursor in PL/SQL.
I believe many DBAs who are engaged in development or maintenance have encountered similar face-to-face problems when looking for a job: Please briefly describe the type of the cursor,
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.