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

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the physical storage length of the data types date, time, and timestamp?

611


What is the physical storage length of the data types: date, time, timestamp in the db2 database?

650


can any one provide me the link for the db2 v7 & db2 v8 manual for Z/os? i need to know about the syntax of REORG in both versions & need to know the difference as well

1806


What is runstats db2?

585


What is sqlca’s maximum length?

678






Is it possible using max on a char column?

609


How can you find out the # of rows updated after an update statement?

641


How does a cursor work?

558


Explain what are the various isolation levels possible?

610


Mention a credible reason why select* is never given preference in an sql program that has been embedded.

719


List out the data types available.

704


How does cobol compile db2 program?

610


What is the use of reorg in db2?

608


Explain db2.

620


How to execute stored procedure in db2 command editor?

532