PHP 手册
上一页 |  | 下一页

# sesam_rollback

(PHP 3 CVS only)

sesam_rollback -- Discard any pending updates to the SESAM database

## 说明

bool sesam_rollback ( void )

sesam_rollback() discards any pending updates to the database. Also affected are result cursors and result descriptors.

At the end of each script, and as part of the sesam_disconnect() function, an implied sesam_rollback() is executed, discarding any pending changes to the database.

## 返回值

如果成功则返回 `TRUE`，失败则返回 `FALSE`。

## 范例

例 1. Discarding an update to the SESAM database

`<?php if (sesam_connect ("mycatalog", "myschema", "otto")) { if (sesam_execimm ("INSERT INTO mytable VALUES (*, 'Small Test', <0, 8, 15>)") && sesam_execimm ("INSERT INTO othertable VALUES (*, 'Another Test', 1)")) { sesam_commit(); } else { sesam_rollback(); } } ?>`

## 参见

sesam_commit()

上一页 | 起始页 | 下一页
sesam_query | 上一级 | sesam_seek_row