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...


What is the significance of the CURSOR WITH HOLD clause in
a cursor declaration?

Answers were Sorted based on User's Feedback



What is the significance of the CURSOR WITH HOLD clause in a cursor declaration?..

Answer / abhisek

As soon as the COMMIT statement is executed in a
program,the cursor gets automatically closed,So we need to
give CURSOR WITH HOLD clause,in order to keep it open after
execution of the COMMIT statement.

Is This Answer Correct ?    43 Yes 2 No

What is the significance of the CURSOR WITH HOLD clause in a cursor declaration?..

Answer / ss

To remain cursor open after commit statement execution

Is This Answer Correct ?    33 Yes 0 No

What is the significance of the CURSOR WITH HOLD clause in a cursor declaration?..

Answer / yogendra shinde

Hi,
CURSOR with WITHOLD is very useful where we need to use
more than 1 database simultaneously.
Suppose you are reading or fetching a value from local
database and updating those retrieved values in a remote
DB. In such case when you connect to remote DB, you need to
use WITHOLD for local db. So that you don't loose the
cursor position for local db.

For further ref. do read more about CONNECT.

Is This Answer Correct ?    10 Yes 2 No

What is the significance of the CURSOR WITH HOLD clause in a cursor declaration?..

Answer / mainframe virumbi

The answers given above is correct only. Adding those, we
cant execute sql statements other than select, after commit
is encountered.

Is This Answer Correct ?    8 Yes 1 No

Post New Answer

More DB2 Interview Questions

When is the access path determined for dynamic SQL?

2 Answers  


how to identify the pseudo conversation by seeing the program

2 Answers   DELL,


How do you eliminate duplicate values in db2?

0 Answers  


Explain the benefits you can get from mainframe connect?

0 Answers  


How is a typical db2 batch pgm executed?

0 Answers  


What is data manager?

0 Answers  


How can you find out which query is taking lot of time to execute in cobol-db2 program ?

1 Answers   Danske,


What is the purpose of the DSNC transaction ?

1 Answers  


When would you prefer to use VARCHAR?

3 Answers  


What is release/acquire in bind?

0 Answers  


wht is d/f b/w inner join and outer join ? d/f group by and order by having by ?

2 Answers  


How do I delete a table in db2?

0 Answers  


Categories