mysqli_autocommit
(PHP 5)
mysqli_autocommit(no version information, might be only in CVS)
mysqli->autocommit() -- Turns on or off auto-commiting database modificationsOpis
Procedural style:
bool mysqli_autocommit ( mysqli link, bool mode )Object oriented style (method)
class 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.
Parametry
link
Procedural style only: A link identifier returned by mysqli_connect() or mysqli_init()
mode
Whether to turn on auto-commit or not.
Notatki
Notatka: This function doesn't work with non transactional table types (like MyISAM or ISAM).
Przykłady
Przykład 2. Procedural style
|
Powyższy przykład wyświetli:
Autocommit is 1 |
Poprzedni | Spis treści | Następny |
mysqli_affected_rows | Początek rozdziału |