(PHP 5, PHP 7)
mysqli::rollback -- mysqli_rollback — Rolls back current transaction
Estilo orientado à objeto
$flags
= 0
[, string $name
]] ) : boolEstilo procedural
Rollbacks the current transaction for the database.
link
Somente no estilo procedural: Um recurso link retornado por mysqli_connect() ou mysqli_init()
flags
A bitmask of MYSQLI_TRANS_COR_*
constants.
name
If provided then ROLLBACK/*name*/
is executed.
Retorna true
em caso de sucesso ou false
em caso de falha.
Nota:
This function does not work with non transactional table types (like MyISAM or ISAM).
Versão | Descrição |
---|---|
5.5.0 |
Added flags and name
parameters.
|