PHP 手册
上一页 |  | 下一页

# sesam_commit

(PHP 3 CVS only)

sesam_commit -- Commit pending updates to the SESAM database

## 说明

bool sesam_commit ( void )

Commits any pending updates to the database.

Note that there is no "auto-commit" feature as in other databases, as it could lead to accidental data loss. Uncommitted data at the end of the current script (or when calling sesam_disconnect()) will be discarded by an implied sesam_rollback() call.

## 返回值

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

## 范例

例 1. Committing 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>)")) die("insert failed"); if (!sesam_commit()) die("commit failed"); } ?>`

## 参见

sesam_rollback()

上一页 | 起始页 | 下一页
sesam_affected_rows | 上一级 | sesam_connect