What Is the Implicit Cursor in Oracle

Q

What Is the Implicit Cursor in Oracle?

✍: FYIcenter.com

A

There is only one implicitly cursor in a session. The implicit cursor is the cursor automatically defined by PL/SQL for you. Whenever a SQL statement is executed, this cursor will be assigned to represent the execution of this statement. This implicit cursor is called SQL. It has many attributes representing some good information about the execution like:

  • SQL%FOUND - True, if the SQL statement has changed any rows.
  • SQL%NOTFOUND - True, if the SQL statement has not changed any rows.
  • SQL%ROWCOUNT - The number of rows affected by the SQL statement.
  • %ISOPEN - True, if there is a SQL statement being associated to the cursor.

 

Attributes of the Implicit Cursor in Oracle

Types of Cursors Supported in PL/SQL in Oracle

Working with Cursors in Oracle PL/SQL

⇑⇑ Oracle Database Tutorials

2018-02-01, 1641🔥, 0💬