mysqli savepoint() Method
The mysqli::savepoint() / mysqli_savepoint() function is used to set a named transaction savepoint. This function is identical to executing $mysqli->query("SAVEPOINT `$name`");
Syntax
//Object-oriented style public mysqli::savepoint(name) //Procedural style mysqli_savepoint(mysql, name)
Parameters
mysql |
Required. For procedural style only: Specify a mysqli object returned by mysqli_connect() or mysqli_init(). |
name |
Required. Specify the identifier of the savepoint. |
Return Value
Returns true on success or false on failure.
❮ MySQLi Functions Reference