跳转到主要内容

commit

mysqli::commit

mysqli_commit

Commits the current transaction

ENTITY

ENTITY

public

bool

mysqli::commit

int

flags

0

string

null

name

ENTITY

ENTITY

bool

mysqli_commit

mysqli

mysql

int

flags

0

string

null

name

ENTITY

Commits the current transaction for the database connection.

ENTITY

flags
A bitmask of MYSQLI_TRANS_COR_* constants.

name
If provided then COMMIT/*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_autocommit, mysqli_begin_transaction, mysqli_rollback, mysqli_savepoint