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 will you return the number of records in table?
How do I import data from excel to db2?
What are catalog tables in db2?
B37 abend during spufi?
Is it possible using max on a char column?
What is the maximum length of sqlca?
What is database alias db2?
have 3 tables table1, table2 and table3 which contains employee information. table1 is master table, table2 contains emp details like emp no and so on, table 3 contains emp salary. so if any emp leave company between 25th - 30th of every month it has to get updated in tables. but it is not getting updated. What is the reason.
How connect db2 database to datastage?
What is the picture clause of null indicator variable?
How is deadlock resolved?
Explain in brief how does db2 determine what lock-size to use?
What is the default page size of buffer pools?
List out the data types available.
What kind of database is db2?