What are cursor attributes?
Answers were Sorted based on User's Feedback
Answer / sushmita pathak
Whenever we work with explicit and implicit cursors
(including cursor variables), PL/SQL provides a set of
cursor attributes that return information about the cursor.
PL/SQL 8.1 adds another, composite attribute, SQL%
BULK_ROWCOUNT, for use with or after the FORALL statement.
All of the current attributes are as follows
cur %FOUND:
Returns TRUE if the last FETCH found a row
cur %NOTFOUND:
Returns FALSE if the last FETCH found a row
cur %ISOPEN:
Returns TRUE if the specified cursor is open
cur %ROWCOUNT:
Returns the number of rows modified by the DML statement
SQL%BULK_ROWCOUNT:
Returns the number of rows processed for each execution of
the bulk DML operation
In these attributes, cur is the name of an explicit cursor,
a cursor variable, or the string "SQL" for implicit cursors
(UPDATE, DELETE, and INSERT statements, since none of the
attributes can be applied to an implicit query). The %
BULK_ROWCOUNT structure has the same semantics as an index-
by table. The n th row in this pseudo index-by table stores
the number of rows processed by the n th execution of the
DML operation in the FORALL statement.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is correlated subquery?
0 Answers emc2, JK Technosoft,
what is the difference between SENSITIVE and INSENSITIVE?
What is dburl?
Why is jdbc needed?
Does the JDBC-ODBC Bridge support multiple concurrent open statements per connection?
Which of the attributes in the monitoring tab for a jdbc connection pool in the administrative console tell us how many clients are currently waiting for a connection?
What are the steps required to execute a query in jdbc?
How do I find jdbc version?
What is jdbc template?
What is the role of class.forname while loading drivers?
What are the steps to connect to the database in java?
Why do we use jdbc in java?