a cursor normally gets closed once we provide a commit . If
u try to close the same cursor with close cursor command
later after providing the commit will there be any sql-error.
Answers were Sorted based on User's Feedback
Answer / pavithra
when we try to close the cursor that is already closed, it
will return the SQL error code
-501 - cursor found in the fetch or close statement is not open.
please correct me if wrong
| Is This Answer Correct ? | 4 Yes | 3 No |
Answer / manasa
WHEN THE CURSOR IDENTIFIED IN A FETCH OR CLOSE STATEMENT IS
NOT OPEN,then we get -501 error.
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / mehdee
- If you do COMMIT in your program, that means you have
UPDATE, INSERT or DELETE, which in this case you must
DECLARE CURSOR WITH HOLD, then it will not be closed after
COMMIT.
| Is This Answer Correct ? | 1 Yes | 2 No |
What is cursor stability in db2?
How can you find out the # of rows updated after an update statement?
Can i insert bulk records into a db2 table using qmf of spufi only............!!!
How to take backup of table in db2?
where will u check for sqlcode ?
What is release/acquire in bind?
what are the copybook changes generally we done?can anyone tell me......... Thanks in advance........
If I have a view which is a join of two or more tables, can this view be updateable?
What is rct?
why we go for SPUFI for creating tables or for sql queries?
Explain about rct.
can any one expalin check point with an example?