Original: http://ntk2006.blog.sohu.com/135331235.html
Cursor ConceptCursors provide a flexible way to retrieve and operate data from tables. cursors are mainly used on servers to process SQL statements sent from clients to servers, or data
Cursor is a method for processing data. To view or process data in a result set, A cursor provides the ability to forward or backward data in a result set by one or more rows. We can use a cursor as a pointer, which can specify any position in the
1. What is a cursor?① Retrieve the result set from the table and point to a record for interaction at a time.② Operations in relational databases are performed on the complete set of rows.The row set returned by the SELECT statement includes all
There are two types of cursors in Oracle: an explicit cursor, an implicit cursor. A display cursor is a cursor defined with the cursor...is command that handles multiple records returned by a query statement (SELECT), while an implicit cursor is a
The concept of cursors:
A cursor is a memory workspace of SQL that is defined by the system or user as a variable. The role of a cursor is to temporarily store blocks of data that are extracted from the database. In some cases, the data needs to be
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
PL/SQL cursor usage, plsql cursor usageZookeeper
Use of cursors
① Cursor ConceptTo process SQL statements, ORACLE must allocate a region called context area to process required information,This includes the number of rows to be processed, a pointer
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
server| Cursor Sql-server Declaration cursor
Each cursor must have four components, these four key parts must conform to the following order;
1.DECLARE Cursors
2.OPEN Cursors
3. Fetch information from a cursor
4.CLOSE or deallocate cursors
Usually
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.