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

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain in detail about buffer manager and its functionalities?

782


How do I start db2 in windows?

791


What is host variable?

801


What is collection in db2 bind?

768


What is database manager in db2?

751


Which is faster delete or truncate?

873


What is page size in db2?

737


How can we read records for specific member in CL? AND rpg?

439


Why do we use cursor?

793


What are union and union all?

727


What is the use of runstats in db2?

785


Why cursor is used in db2?

760


What is a trigger in the db2 database?

794


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

956


Discuss about db2 bind?

859