How do you leave the cursor open after issuing a COMMIT?
(for DB2 2.3 or above only)

Answers were Sorted based on User's Feedback



How do you leave the cursor open after issuing a COMMIT? (for DB2 2.3 or above only)..

Answer / a.roselin

CURSOR WITH HOLD Option

Is This Answer Correct ?    4 Yes 0 No

How do you leave the cursor open after issuing a COMMIT? (for DB2 2.3 or above only)..

Answer / s

If you like the cursor maintain the position even after the
commit, CURSOR is defined WITH HOLD.

Is This Answer Correct ?    4 Yes 0 No

Post New Answer

More DB2 Interview Questions

Normalization in DB2 – first normal form, second normal form

4 Answers   Virtusa,


What is ibm db2 client?

0 Answers  


Can you use a select query in a loop to fetch multiple rows? If so what is the advantage of using a cursor?

2 Answers   L&T, UST,


Mention the various locks that are available in db2.

0 Answers  


Can i insert bulk records into a db2 table using qmf of spufi only............!!!

2 Answers  






db2 restart logic ?

1 Answers   DELL, HTC, UHG,


Explain about rct in db2?

0 Answers  


What is tablespace?

3 Answers  


What are the uses of db2 optimizer?

0 Answers  


I have a table which has thousand of records i want to fetch only record num 100 to record num 200. Write a query that satisfies this criteria.(Cant use any keys) Anyone please reply ASAP!

17 Answers   KNIT, Tech Mahindra,


What is a buffer pool?

2 Answers  


Where could you look if you had a question about whether a column has been defined as an index?

2 Answers  


Categories