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

Explain the function of data manager.

777


What are the various isolation levels possible?

825


What is the difference between drop table and delete table?

752


What is the physical storage length of timestamp data type?

836


Can there be more than one cursor open for any program?

882






How to resolve deadlock issue

18913


What is the connection string to connect to the DB2 Database ?

819


Explain what are the various isolation levels possible?

770


Before you give the explain statement, what are the prerogatives?

751


can all users have the privilage to use the sql statement select * (dml)?

820


Define predicate?

839


What is the use of commit in db2?

795


Discuss about db2 bind?

844


What is difference between isnull and coalesce?

783


Which is faster delete or truncate?

855