Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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 is the physical storage length of date data type?

0 Answers  


What is an alias and how does it differ from a synonym?

3 Answers  


What is db2 stogroup?

0 Answers  


When is the results table for the query in a DECLARE CURSOR statement created?

5 Answers  


if suppose i am having an ACCOUNT table with 3 coloumns ACC. NO,ACC. NAME,ACC. AMOUNT . If a unique index is also defined on ACC.NO and ACC.NAME then write a query to retrieve account holders records who have more than 1 ACC.

8 Answers   Wipro,


What is scrollable cursor in db2?

0 Answers  


What is cursor with hold option in db2?

0 Answers  


What is nvl in db2?

0 Answers  


How does the processing of a correlated subquery differ from a non correlated subquery?

1 Answers  


in my table i will update only 100 record among 1000 records i need to display recently updated record'.....can u tell me where those records are stored how can i display those records...?if there is any sql query pls let me know....?

3 Answers   Infosys,


What is runstats utility in db2?

0 Answers  


Where would you find information about the type of database authority held by the user?

2 Answers  


Categories