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

Highlight all the advantages that are attached to a package.

623


What is cobol db2?

566


I understand Join always perform better than subqueries. Then what is the advantage/use of Subqueries/correlated subqueries etc.,in DB2 programming.Please explain.

1646


How to check table size in db2 sap?

571


What is the use of value function?

620






How to run db2 command in windows?

641


What are the different types of base tables?

583


What is meant by union and union all?

578


How do you select a row using indexes in db2?

641


What are the various data types available in db2?

628


Can we delete records from view?

558


What is rct?

747


What is null value in db2?

558


How to connect to db2 database from windows command line?

560


How do I delete a column in db2?

674