what happend with out using Commit,when closing cursor and
program?

Answer Posted / guna

If there is no commit while closing cursor or a program,
processed records are lost when an abnormal end occurs.
Say, if due to the execution of the program some rows are
inserted/deleted/updated in a table, those changes will be
lost.
It is a better practice to give commit after every
insertion/updation queries and before terminating a
program.

Is This Answer Correct ?    4 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is ibm db2 used for?

596


For a db2 column that is being defined as decimal (11, 2), discuss the cobol picture clause.

651


What is sqlca’s maximum length?

664


What is db2 and what is the use of db2 optimizer?

644


What is the advantage in De-normalizing tables in DB2?

740






what is the role of the cursor in db2?

634


What is page size in db2?

559


Is ibm db2 free?

569


What is the maximum length of sqlca?

855


What are the contents of dclgen?

645


How does coalesce work?

577


What is an instance in db2?

558


What is the role of data manager in the db2 database?

634


Are view updateable?

623


Mention the way of highlighting as well as putting a cursor to use in a cobol program.

621