Basic Oracle Concepts and Programming Question: Download Oracle Database PDF
What Is the Oracle Implicit Cursor?
Answer:
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.
► 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.
Previous Question | Next Question |
How Many Types of Cursors Supported in PL/SQL? | How To Use Attributes of the Implicit Cursor in Oracle? |