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 / r.l.v.krishna

COMMIT WILL CLOSE ALL THE CURSORS IF U R NOT MENTIONED WITH HOLD OPTION IN THE DECLARATION PART OF THE CURSOR....

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is ibm db2 used for?

598


List out the three types of page locks that can be held.

683


When a COBOL-DB2 program in PRODUCTION is updating main tables and gone for long run, what have to do?

3114


What is database reorganization?

587


How to retrieve rows from a db2 table in embedded sql?

716






Define data page.

628


What is difference between rollback and commit?

616


Is it possible to alter a table – for example adding a column, when another user is accessing or updating some columns?

624


File not opened because library is *PROD and debug is UPDPROD(*NO). ? what may be the reason? how to solve it..?

2375


List out the data types available.

696


What is the cobol picture clause of the db2 data types date, time, timestamp?

610


Comment whether dclgen is mandatorily used. If not, then what is the point of using it?

604


What is universal database?

616


What is a Foreign Key?

654


What is meant by explain?

660