Example (standard-style syntax). Verify supported keywords in your database.
SAVEPOINT before_optional_change;Mark a point within a transaction to which work can be rolled back.
SAVEPOINT savepoint_name;Example (standard-style syntax). Verify supported keywords in your database.
SAVEPOINT before_optional_change;SQLite-oriented variant; dialect behaviour may differ.
SAVEPOINT before_optional_change;| Option / clause | Description |
|---|---|
BEGIN / START TRANSACTION | Start a transaction; exact keywords vary by engine. |
COMMIT | Make the transaction's changes permanent. |
ROLLBACK | Undo uncommitted work or return to a savepoint. |
SAVEPOINT | Mark an intermediate point within a transaction. |
Isolation level | Choose concurrency behaviour where supported. |
Review a command and its target before running it. Commands that alter files, services, accounts, disks, permissions or databases may be difficult to reverse. Test in a safe environment and keep backups.