SHOW SAVEPOINT STATUS lists the active in the current .
Required privileges
No are required to create or show a savepoint. However, privileges are required for each statement within a transaction.Synopsis
Response
The following fields are returned for each savepoint.| Field | Description |
|---|---|
savepoint_name | The name of the savepoint. |
is_initial_savepoint | Whether the savepoint is the outermost savepoint in the transaction. |
Example
-
Open a using , and create a using a :
-
Use the
SHOW SAVEPOINT STATUSstatement to list the active savepoints in the current nested transaction.Currently, there is only one savepoint. -
Commit this nested transaction by issuing the statement, then clear the connection for the next transaction by issuing a statement:
If we did not want to commit this nested transaction, but restart it instead, we would have issued a .

