mysqli::rollback

mysqli_rollback

(PHP 5, PHP 7)

mysqli::rollback -- mysqli_rollbackRolls back current transaction

Descrierea

Stil obiect-orientat

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

Stil procedural

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

Rollbacks the current transaction for the database.

Parametri

link

Numai stilul procedural: Un identificator al legăturii întors de mysqli_connect() sau mysqli_init()

flags

A bitmask of MYSQLI_TRANS_COR_* constants.

name

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

Valorile întoarse

Întoarce valoarea true în cazul succesului sau false în cazul eșecului.

Note

Notă:

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

Istoricul schimbărilor

Versiune Descriere
5.5.0 Added flags and name parameters.

Exemple

See the mysqli::begin_transaction() example.

A se vedea și