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?

Answers were Sorted based on User's Feedback



I have 3 cursors declared. Cursor1 retieves some data. Based on this curso2 will also fetches some..

Answer / sridhar

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

Is This Answer Correct ?    37 Yes 0 No

I have 3 cursors declared. Cursor1 retieves some data. Based on this curso2 will also fetches some..

Answer / purushotham

Obviously it will close all the cursors.

Is This Answer Correct ?    3 Yes 2 No

I have 3 cursors declared. Cursor1 retieves some data. Based on this curso2 will also fetches some..

Answer / srisri

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

Is This Answer Correct ?    1 Yes 0 No

I have 3 cursors declared. Cursor1 retieves some data. Based on this curso2 will also fetches some..

Answer / 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

More DB2 Interview Questions

What are the three DB2 date and time data types and their associated functions?

1 Answers  


What is db2 look?

0 Answers  


What is referential integrity?

5 Answers  


what is a collection?

2 Answers  


What is with ur in db2?

0 Answers  






Update command

1 Answers  


How does one bind 2 versions of a CICS transaction with the same module name in two different CICS regions that share the same DB2 subsystem?

2 Answers  


run jcl for cobol+db2 pgm?.. //jobcard //step001 exec pgm=ikjeft01 //systin dd * DSNSYSTEM(--------) RUN PROGRAM(MYPGMNAME) PLAN(-----), LIB(-------), PARMS(------) /* WHAT WILL U GIVE INSIDE THE BRACKETS... WHAT IS PLAN,PACKAGE,BIND?..PLAN N PACAKGES ARE GENERATED BY ?...

0 Answers   IBM,


what is a trigger and types of triggers

3 Answers   HSBC,


How would you find out the total number of rows in a db2 table?

0 Answers  


How to insert more than one record using insert?

7 Answers   Atos Origin, IBM,


Are views updateable?

0 Answers  


Categories