Concept Flow - Savepoints within transactions
Start Transaction
Execute SQL Statements
Create Savepoint
Execute More SQL Statements
Rollback to Savepoint?
Yes→Undo to Savepoint
Continue
Commit or Rollback Transaction
End
You start a transaction, run some commands, create savepoints to mark spots, and can rollback to these savepoints without undoing everything. Finally, you commit or rollback the whole transaction.