Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
控制执行每个语句(插入、更新或删除)后是否执行提交。
public Boolean autoCommit;
如果 autoCommit 为 false,则仅当用户调用 commit() 或 rollback() 方法时,才执行提交或回退。
缺省情况下,在每次成功执行语句后,都会执行数据库提交。如果提交失败,可选择执行其它 SQL 语句,然后再次执行提交,也可以选择执行回退语句。