mysqli::rollback

mysqli_rollback

(PHP 5, PHP 7)

mysqli::rollback -- mysqli_rollbackRolls back current transaction

Beschreibung

Objektorientierter Stil

public mysqli::rollback ([ int $flags = 0 [, string $name ]] ) : bool

Prozeduraler Stil

mysqli_rollback ( mysqli $link [, int $flags = 0 [, string $name ]] ) : bool

Rollbacks the current transaction for the database.

Parameter-Liste

link

Nur bei prozeduralem Aufruf: Ein von mysqli_connect() oder mysqli_init() zurückgegebenes Verbindungsobjekt.

flags

A bitmask of MYSQLI_TRANS_COR_* constants.

name

If provided then ROLLBACK/*name*/ is executed.

Rückgabewerte

Gibt bei Erfolg TRUE zurück. Im Fehlerfall wird FALSE zurückgegeben.

Anmerkungen

Hinweis:

This function does not work with non transactional table types (like MyISAM or ISAM).

Changelog

Version Beschreibung
5.5.0 Added flags and name parameters.

Beispiele

See the mysqli::begin_transaction() example.

Siehe auch