InterviewSolution
Saved Bookmarks
| 1. |
What Do We Use Setautocommit() For? |
|
Answer» The DML OPERATIONS by DEFAULT are committed. If we wish to avoid the commit by default, setAutoCommit(false) has to be CALLED on the Connection object. Once the STATEMENTS are executed, commit() has to be called on the Connection object explicitly. The DML operations by default are committed. If we wish to avoid the commit by default, setAutoCommit(false) has to be called on the Connection object. Once the statements are executed, commit() has to be called on the Connection object explicitly. |
|