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

SQL Anywhere 12.0.0 (中文) » UltraLite - C 及 C++ 编程 » 应用程序开发 » 使用 UltraLite C++ API 开发应用程序

 

管理事务

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

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

    请参见Commit 方法

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

    请参见Rollback 方法

有关 UltraLite 中事务管理的详细信息,请参见UltraLite 事务处理