|
PHP5中文手册
mysqli_autocommitmysqli->autocommit()(PHP 5) mysqli->autocommit() — Turns on or off auto-commiting database modifications 说明Procedural style:
bool mysqli_autocommit
( mysqli $link
, bool $mode
)
Object oriented style (method) mysqli
bool autocommit
( bool $mode
)
Turns on or off auto-commit mode on queries for the database connection. To determine the current state of autocommit use the SQL command SELECT @@autocommit. 参数
返回值如果成功则返回 TRUE,失败则返回 FALSE。 注释
范例Example#1 Object oriented style
<?php Example#2 Procedural style
<?php 上例将输出:
|