a cursor normally gets closed once we provide a commit . If
u try to close the same cursor with close cursor command
later after providing the commit will there be any sql-error.

Answer Posted / mehdee

- If you do COMMIT in your program, that means you have
UPDATE, INSERT or DELETE, which in this case you must
DECLARE CURSOR WITH HOLD, then it will not be closed after
COMMIT.

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is bind package and plan in db2?

694


What is collection in db2 bind?

664


Are views updateable?

730


How many types of page locks can be held in db2?

689


Can we delete records from view?

652






How to get the ddl of a table in db2?

758


What is phantom read in db2?

720


Explain in brief how does db2 determine what lock-size to use?

674


What is db2 catalog database?

659


Mention some fields that are a part of sqlca.

680


What are the various data types available in db2?

711


Highlight all the advantages that are attached to a package.

727


Explain correlated sub-queries.

663


What is a cursor in programming?

696


What are the 2 sqlcodes that are returned?

731