what is the use of commit ? and what is the syntax?

Answer Posted / yuvaevergreen

Commit statement is an explicit way of mentioning that
>>any changes should be committed to the object.
>>any locks to be released from the particular object
(except WITH HOLD cursor)
I hope syntax should be
EXEC SQL
COMMIT
END-EXEC.

Is This Answer Correct ?    11 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is cascading rollback?

851


On which levels locks can be applied?

849


Can you use max on a char column?

824


How do I add a column to an existing table in db2?

772


What do you mean by rollback?

739


How can you validate Sql errors during cursor operation in db2 pgms and where do you code?

1952


How to find schema of a table in db2?

741


How to find the number of rows in a db2 table?

842


List down the data types in the db2 database.

809


How do I import a csv file into db2?

739


What is load utility in db2?

879


I HAVE 500 ROW TO UPDATE I WOULD LIKE TO USE ROLLBACK ALONG WITH COMMIT.WHAT IS THE SYNTAX TO CODE COMMIT AND ROLLBACK FOR EVERY 100 ROWS.AND HOW THE CURSOR ROLLBACK TO THE LAST COMMITTING POINT.

2964


What is db2 stogroup?

882


How to execute stored procedure in db2 command editor?

734


Name the lockable units in DB2?

892