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

Which isolation level provides maximum concurrency?

666


How do I import a csv file into db2?

562


What is load utility in db2?

668


What is the meaning concurrency in the db2 database?

634


How do I copy a table in db2?

575






How do you select a row using indexes in db2?

647


What is the difference between cursor stability and repeatable read isolation levels?

686


How connect db2 database to datastage?

765


Describe major components of db2?

642


What is a buffer in memory?

600


Define declaration generator (dclgen).

667


How to create backup table in db2?

644


What is table space in db2?

584


what is the role of the cursor in db2?

643


What is the use of db2 optimizer?

611