Answer Posted / 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 |
Post New Answer View All Answers
How to find schema of a table in db2?
What are types of indexes?
What is netezza database?
What language is db2 written in?
Explain in brief how does db2 determine what lock-size to use?
Which command is used to connect to a database in DB2 ? Give the Syntax.
How to find the maximum value in a column in the db2 database?
Following a db2 update statement, what is the quickest way to compute the total number of updated rows?
What do you mean by cursor?
What is clone table?
What is the use of reorg in db2?
Comment whether dclgen is mandatorily used. If not, then what is the point of using it?
What is the maximum number of columns in a db2 table?
Is ibm db2 free?
Discuss about db2 bind?