cursor with hold explain ?
Answer / ratheesh nellikkal
Hi All,
Cursor is nothing but a pointer to a result set that you
get as a result of executing a query.
So if u wanna some operations using this cursor then u have
to
1. Declare a cursor
2.Open the cursot before the first access
3.Do the operations
4.Close the cursor.
But in case of a normal cursor (not declared with 'with
hold' option) in between the operations if u issued a
commit command then the cursor will be getting closed and
if u wanna access it again then u should open it again.
But incase of a 'With hold' cursor it will maintane the
states if you issed a commit also.
Means it will not get closed by applying frequent commit.
Regards,
Ratheesh Nellikkal
Is This Answer Correct ? | 8 Yes | 0 No |
What are the bind parameters ibm db2?
DB2: A calls B once sucessfull and second time when it calls says curson is open why is it so?
What if we try to insert the base table through updatable view , but failed to give a column value which is defined as NOT NULL.
query to just fetch first matching row and stop execution. once one matching row is found ..no more records should be checked.. if the first record is matching.. the query must stop
What is meant by dclgen?
Which component is responsible for db2 startup and shutdown?
what is a collection?
What will the COMMIT accomplish?
What does it mean if the null indicator has -1, 0, -2?
What is difference between *omit and *nopass?
db2 restart logic ?
What does reorg do in db2?