跳转到主要内容

rollback

mysqli::rollback

mysqli_rollback

Rolls back current transaction

ENTITY

ENTITY

public

bool

mysqli::rollback

int

flags

0

string

null

name

ENTITY

ENTITY

bool

mysqli_rollback

mysqli

mysql

int

flags

0

string

null

name

ENTITY

Rolls back the current transaction for the database.

ENTITY

flags
A bitmask of MYSQLI_TRANS_COR_* constants.

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

ENTITY

ENTITY

ENTITY ENTITY

ENTITY

ENTITY ENTITY
8.0.0 name is now nullable.

ENTITY

See the mysqli::begin_transaction example.

ENTITY

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

ENTITY

mysqli_begin_transaction, mysqli_commit, mysqli_autocommit, mysqli_release_savepoint