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 are packages in db2?

778


How to get the ddl of a table in db2?

856


What is drop table?

763


What is explain plan in db2?

767


What is a plan and package in db2?

831


My sql statement select avg(salary) from emp yields inaccurate results. Why?

842


Define predicate?

852


What is the use of db2 optimizer?

812


What is a storage group (stogroup)?

986


What is precompiler in db2?

765


How to find primary key of a table in db2?

805


Is it possible using max on a char column?

834


What is an instance in db2?

746


What is host variable?

799


How do I delete a table in db2?

814