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

Answers were Sorted based on User's Feedback



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

Answer / p.shravani

commit is a command.It is used to make the changes permanent
on the storage when the transaction is successfully
processed or execute.
syntax
exec sql
commit
end-exec.

Is This Answer Correct ?    23 Yes 2 No

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

Answer / 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

More DB2 Interview Questions

how to check the table is empty or not?

3 Answers   IBM,


Differentiate between cs and rr isolation levels? Where do you specify them?

0 Answers  


How to see the structure of db2 table??

4 Answers   IBM,


why we create view.

5 Answers  


can we view the access paths created by dbrm ? how ? thx

2 Answers   IBM,






What is a DBRM, PLAN ?

3 Answers  


Can a array declared with an index be displayed(readable format) in spool?

4 Answers   Syntel, UST,


What is an intent lock?

3 Answers  


How to resolve -502 sql code in DB2?

2 Answers   Cap Gemini,


What information is used as input to the bind process?

2 Answers  


What is the function of logging in the db2 database?

0 Answers  


When is the results table for the query in a DECLARE CURSOR statement created?

5 Answers  


Categories