MySQL and PHP

3.8.45 mysqli::savepoint, mysqli_savepoint

Copyright 1997-2021 the PHP Documentation Group.

Description

Object oriented style

public bool mysqli::savepoint(string name);

Procedural style:

bool mysqli_savepoint(mysqli link,
                      string name);

This function is identical to executing $mysqli->query("SAVEPOINT `$name`");

Parameters

link

Procedural style only: A link identifier returned by mysqli_connect or mysqli_init

name

The identifier of the savepoint.

Return Values

Returns true on success or false on failure.

See Also

mysqli_release_savepoint