savepoint
A savepoint is a named marker inside a database transaction that allows rolling back part of the work while preserving earlier operations. Savepoints provide fine-grained error handling within a single transaction and can help implement multi-step procedures without abandoning the entire transaction.
Saving a point is done with SAVEPOINT name. If subsequent statements fail or produce an unwanted result,
Released savepoints: RELEASE SAVEPOINT name frees resources but does not commit or roll back. Not all databases
Compatibility and limitations: Savepoints are supported by many relational databases, such as PostgreSQL, MySQL, Oracle, and
Example usage: START TRANSACTION; SAVEPOINT sp; -- perform a set of operations; if a later step fails,