Documentation Home
MySQL PHP API
Download this Manual
PDF (US Ltr) - 2.4Mb
PDF (A4) - 2.4Mb
HTML Download (TGZ) - 247.6Kb
HTML Download (Zip) - 255.3Kb


MySQL PHP API  /  ...  /  mysqli::savepoint, mysqli_savepoint

3.9.45 mysqli::savepoint, mysqli_savepoint

Copyright 1997-2020 the PHP Documentation Group.

  • mysqli::savepoint

    mysqli_savepoint

    Set a named transaction savepoint

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