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 commit in db2?

596


What is database reorganization?

593


What is the difference between plan and package in db2?

581


What is ibm db2 client?

523


What is the maximum size of a char data type in db2?

588






Which is faster delete or truncate?

681


Explain about cursor stability?

627


What is dclgen (declaration generator)?

605


How can the firstname and the lastname from the emp table be concatenated to generate complete names?

750


Is db2 free?

688


Outputs of explain are with matchcols = 0. What does this signify?

622


Explain the function of data manager.

637


What is the usage of open cursor command?

601


What does db2 stand for?

601


What is the syntax for creating a table in the db2 database?

628