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 is meant by union and union all?
wht displays the number of times a query modified ?
How to check sequence on a table in db2?
What happens to a cursor after a commit?
What is a cursor in programming?
Can we use select * statement in cobol program without giving field names ???
What is bind and rebind in db2?
What is database reorganization?
The only place of VSAM KSDS in DB2 is?
Normalization in DB2 – first normal form, second normal form
One program calling 5 subprograms, its a cobol db2 program, after precompilation how many plans and packages will created?
In cursor program perform para varying until 1 by 1 fetch para cursor------close para in the blank what will come for confirming in the database?