I have 3 cursors declared. Cursor1 retieves some data.
Based on this curso2 will also fetches some data. In cursor3
(using for some updation) I'm using the data retrieved by
the above 2 cursor. My question is, while working with
cursor3, periodically if I give commit, will all the three
crsors will be closed or only cursor3 will be closed?

Answer Posted / srisri

COMMIT will close all the cursors, if the cursors are not
delcared using 'WITH HOLD'.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between oracle and db2?

595


What is the default page size of buffer pools?

655


What are sqlcodes –803,-805, -811, -818,-904,-911,-913,-101, +100?

734


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.

1252


List down the data types in the db2 database.

643






What is difference between rollback and commit?

644


what is a corelated subquerry?

668


What is meant by dclgen?

624


How to check sequence on a table in db2?

609


How do I delete a table in database?

611


How do we specify index to include or not during bind process.

1680


Which are the db2 tools to protect integrity of the database?

699


What is a dbrm in db2?

585


How to create db2 table in mainframe?

642


What is dpf in db2?

677