Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 12.0.1 » UltraLite - C 及 C++ 编程 » 应用程序开发 » UltraLite C++ 应用程序开发

 

管理事务

UltraLite C++ API 不支持 AutoCommit 模式。事务由第一个语句隐式启动以修改数据库,并且必须显式提交或回退。

 ♦ 提交事务
  • 执行 conn->Commit 语句,其中 conn 是有效的 ULConnection 指针。

 ♦ 回退事务
  • 执行 conn->Rollback 语句,其中 conn 是有效的 ULConnection 指针。

 另请参见