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 runstats utility in db2?

569


How to create db2 table in mainframe?

633


What is the difference between spufi and qmf?

641


In an sql table that is embedded, what is the procedure to retrieve rows that are part of a db2 table?

646


What is a db2 table?

597






How to get the ddl of a table in db2?

679


Comment whether the cursor is closed during commit or not.

676


How can the firstname and the lastname from the emp table be concatenated to generate complete names?

749


What is the meaning concurrency in the db2 database?

638


What is universal database?

622


What kind of database is db2?

574


How do I delete a column in db2?

680


What is precompiler in db2?

589


What is netezza database?

575


What are the 2 sqlcodes that are returned?

644