Types of Cursors in PL/SQL

Cursors are classified depending on the circumstances in which they are opened.

  • Implicit Cursor: If the Oracle engine opened a cursor for its internal processing it is known as an Implicit Cursor. It is created “automatically” for the user by Oracle when a query is executed and is simpler to code.
  • Explicit Cursor: A Cursor can also be opened for processing data through a PL/SQL block, on demand. Such a user-defined cursor is known as an Explicit Cursor.

Cursors in PL/SQL

A Cursor in PL/SQL is a pointer to a context area that stores the result set of a query.

Similar Reads

PL/SQL Cursors

The cursor is used to retrieve data one row at a time from the results set, unlike other SQL commands that operate on all rows at once....

Cursor Actions

Key actions involved in working with cursors in PL/SQL are:...

Types of Cursors in PL/SQL

Cursors are classified depending on the circumstances in which they are opened....

Explicit cursor

An explicit cursor is defined in the declaration section of the PL/SQL Block. It is created on a SELECT Statement which returns more than one row....