Savepoint

Savepoint

A savepoint is a way of implementing subtransactions (also known as nested transactions) within a relational database management system by indicating a point within a transaction that can be "rolled back to" without affecting any work done in the transaction before the savepoint was created. Multiple savepoints can exist within a single transaction. Savepoints are useful for implementing complex error recovery in database applications — if an error occurs in the midst of a multiple-statement transaction, the application may be able to recover from the error (by rolling back to a savepoint) without needing to abort the entire transaction.

A savepoint can be declared by issuing a SAVEPOINT "name" statement. All changes made after a savepoint has been declared can be undone by issuing a ROLLBACK TO SAVEPOINT "name" command. Issuing RELEASE SAVEPOINT "name" will cause the named savepoint to be discarded, but will not otherwise affect anything. Issuing the commands ROLLBACK or COMMIT will also discard any savepoints created since the start of the main transaction.

Savepoints are supported in some form or other in database systems like PostgreSQL, Oracle, Microsoft SQL Server, MySQL, DB2, and Firebird. Savepoints are also defined in the SQL standard.


Wikimedia Foundation. 2010.

Игры ⚽ Нужно сделать НИР?

Look at other dictionaries:

  • Savepoint — Este artículo o sección necesita referencias que aparezcan en una publicación acreditada, como revistas especializadas, monografías, prensa diaria o páginas de Internet fidedignas. Puedes añadirlas así o avisar …   Wikipedia Español

  • SAVEPOINT — Оператор ROLLBACK (откат) применяется для того, чтобы: отменить все изменения, внесённые начиная с момента начала транзакции или с какой то точки сохранения (SAVEPOINT). очистить все точки сохранения данной транзакции завершить транзакцию… …   Википедия

  • Savepoint — Оператор ROLLBACK (откат) применяется для того, чтобы: отменить все изменения, внесённые начиная с момента начала транзакции или с какой то точки сохранения (SAVEPOINT). очистить все точки сохранения данной транзакции завершить транзакцию… …   Википедия

  • savepoint — noun A designated spot where the player can save their progress. I died just before I reached the savepoint and had to repeat everything from my previous save …   Wiktionary

  • SQL — This article is about the database language. For the airport with IATA code SQL, see San Carlos Airport. SQL Paradigm(s) Multi paradigm Appeared in 1974 Designed by Donald D. Chamberlin Raymond F. Boyce Developer …   Wikipedia

  • Rollback (data management) — In database technologies, a rollback is an operation which returns the database to some previous state. Rollbacks are important for database integrity, because they mean that the database can be restored to a clean copy even after erroneous… …   Wikipedia

  • Black (Computerspiel) — BLACK Entwickler Criterion Games Publisher …   Deutsch Wikipedia

  • Rollback — Saltar a navegación, búsqueda Para el flag, véase Wikipedia:Reversores. En tecnologías de base de datos, un rollback es una operación que devuelve a la base de datos a algún estado previo. Los Rollbacks son importantes para la integridad de la… …   Wikipedia Español

  • ROLLBACK — У этого термина существуют и другие значения, см. Rollback. ROLLBACK (откат)  оператор языка SQL, который применяется для того, чтобы: отменить все изменения, внесённые начиная с момента начала транзакции или с какой то точки сохранения… …   Википедия

  • Rollback — У этого термина существуют и другие значения, см. Откат назад. ROLLBACK (откат)  оператор языка SQL, который применяется для того, чтобы: отменить все изменения, внесённые начиная с момента начала транзакции или с какой то точки сохранения… …   Википедия

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”