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
A major reason for using cursor is to convert the set operation into a single record processing method. After retrieving data from a database using SQL, the results are stored in a memory area, and the results are often a collection containing
SQL is the language used to access the Oracle database. PL/SQL expands and enhances SQL functions. It also introduces stronger
Program Logic. PL/SQL supports DML commands and SQL transaction control statements. DDL is not supported in PL/SQL, which
SQL is the language used to access the Oracle database. PL/SQL expands and enhances SQL functions. It also introduces stronger
Program Logic. PL/SQL supports DML commands and SQL transaction control statements. DDL is not supported in PL/SQL, which
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
Query
The SELECT statement is used to query data from the database. When the SELECT statement is used in PL/SQL, it must be used with the into clause. The return value of the query is assigned to the variable in the into clause, variable declaration
When Oracle Database executes a SQL statement, it stores the result set and processing information in an unnamedprivate SQ L area. A pointer to the unnamed area, called acursor, lets youretrieve the rows of the result set one at a time.Cursor
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
css| Cursor | control | Web page
CSS allows you to control all aspects of the page's appearance and layout-including fonts, margin margins, and cursors. Yes, starting with CSS 2.1, you can easily control the cursors that users use when browsing the
An Oracle cursor is divided into a display cursor and an implicit cursor.
Display cursor (Explicit Cursor): A cursor defined in a PL/SQL program, used for querying, is called a display cursor.Implicit cursors (implicit Cursor): A cursor that is
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.