(PHP 5)
mysqli_autocommit(no version information, might be only in CVS)
mysqli->autocommit() -- Turns on or off auto-commiting database modificationsProcedural style:
bool mysqli_autocommit ( mysqli link, bool mode )Object oriented style (method)
class mysqli {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.
link
Procedural style only: A link identifier returned by mysqli_connect() or mysqli_init()
mode
Whether to turn on auto-commit or not.
Anmerkung: This function doesn't work with non transactional table types (like MyISAM or ISAM).
Beispiel 2. Procedural style
|
Das oben gezeigte Beispiel erzeugt folgende Ausgabe:
Autocommit is 1 |
Zurück | Zum Anfang | Weiter |
mysqli_affected_rows | Nach oben | mysqli_bind_param |