What Is the Implicit Cursor


What Is the Implicit Cursor? - Oracle DBA FAQ - Working with Cursors in PL/SQL

✍: FYIcenter.com


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.

2007-04-29, 4482👍, 0💬