PostgreSQL 8.0 Documentation
control the statements in a transaction in a more granular fashion through the use of save- points. Savepoints allow you to selectively discard parts of the transaction, while committing the rest. After defining Keep in mind that either releasing or rolling back to a savepoint will automatically release all savepoints that were defined after it. All this is happening within the transaction block, so none of it ac- count, only to find later that we should have credited Wally’s account. We could do it using savepoints like this: BEGIN; UPDATE accounts SET balance = balance - 100.00 WHERE name = ’Alice’; SAVEPOINT0 码力 | 1422 页 | 9.92 MB | 1 年前3PostgreSQL 8.0 Documentation
to control the statements in a transaction in a more granular fashion through the use of savepoints. Savepoints allow you to selectively discard parts of the transaction, while committing the rest. After Keep in mind that either releasing or rolling back to a savepoint will automatically release all savepoints that were defined after it. All this is happening within the transaction block, so none of it oversimplified, but there’s a lot of control to be had over a transaction block through the use of savepoints. Moreover, ROLLBACK TO is the only way to regain control of a transaction block that was put in0 码力 | 1332 页 | 9.76 MB | 1 年前3PostgreSQL 8.1 Documentation
control the statements in a transaction in a more granular fashion through the use of save- points. Savepoints allow you to selectively discard parts of the transaction, while committing the rest. After defining Keep in mind that either releasing or rolling back to a savepoint will automatically release all savepoints that were defined after it. All this is happening within the transaction block, so none of it ac- count, only to find later that we should have credited Wally’s account. We could do it using savepoints like this: BEGIN; UPDATE accounts SET balance = balance - 100.00 WHERE name = ’Alice’; SAVEPOINT0 码力 | 1548 页 | 11.54 MB | 1 年前3PostgreSQL 8.2 Documentation
control the statements in a transaction in a more granular fashion through the use of save- points. Savepoints allow you to selectively discard parts of the transaction, while committing the rest. After defining Keep in mind that either releasing or rolling back to a savepoint will automatically release all savepoints that were defined after it. All this is happening within the transaction block, so none of it ac- count, only to find later that we should have credited Wally’s account. We could do it using savepoints like this: BEGIN; UPDATE accounts SET balance = balance - 100.00 WHERE name = ’Alice’; SAVEPOINT0 码力 | 1762 页 | 5.43 MB | 1 年前3PostgreSQL 8.1.11 Documentation
control the statements in a transaction in a more granular fashion through the use of save- points. Savepoints allow you to selectively discard parts of the transaction, while committing the rest. After defining Keep in mind that either releasing or rolling back to a savepoint will automatically release all savepoints that were defined after it. All this is happening within the transaction block, so none of it ac- count, only to find later that we should have credited Wally’s account. We could do it using savepoints like this: BEGIN; UPDATE accounts SET balance = balance - 100.00 WHERE name = ’Alice’; SAVEPOINT0 码力 | 1582 页 | 12.19 MB | 1 年前3PostgreSQL 8.3 Documentation
control the statements in a transaction in a more granular fashion through the use of save- points. Savepoints allow you to selectively discard parts of the transaction, while committing the rest. After defining Keep in mind that either releasing or rolling back to a savepoint will automatically release all savepoints that were defined after it. All this is happening within the transaction block, so none of it ac- count, only to find later that we should have credited Wally’s account. We could do it using savepoints like this: BEGIN; UPDATE accounts SET balance = balance - 100.00 WHERE name = ’Alice’; SAVEPOINT0 码力 | 2143 页 | 4.58 MB | 1 年前3PostgreSQL 8.3 Documentation
to control the statements in a transaction in a more granular fashion through the use of savepoints. Savepoints allow you to selectively discard parts of the transaction, while committing the rest. After Keep in mind that either releasing or rolling back to a savepoint will automatically release all savepoints that were defined after it. All this is happening within the transaction block, so none of it oversimplified, but there’s a lot of control to be had over a transaction block through the use of savepoints. Moreover, ROLLBACK TO is the only way to regain control of a transaction block that was put in0 码力 | 2015 页 | 4.54 MB | 1 年前3PostgreSQL 8.2 Documentation
control the statements in a transaction in a more granular fashion through the use of save- points. Savepoints allow you to selectively discard parts of the transaction, while committing the rest. After defining Keep in mind that either releasing or rolling back to a savepoint will automatically release all savepoints that were defined after it. All this is happening within the transaction block, so none of it ac- count, only to find later that we should have credited Wally’s account. We could do it using savepoints like this: BEGIN; UPDATE accounts SET balance = balance - 100.00 WHERE name = ’Alice’; SAVEPOINT0 码力 | 1748 页 | 13.12 MB | 1 年前3PostgreSQL 8.4 Documentation
to control the statements in a transaction in a more granular fashion through the use of savepoints. Savepoints allow you to selectively discard parts of the transaction, while committing the rest. After Keep in mind that either releasing or rolling back to a savepoint will automatically release all savepoints that were defined after it. All this is happening within the transaction block, so none of it oversimplified, but there’s a lot of control possible in a transaction block through the use of savepoints. Moreover, ROLLBACK TO is the only way to regain control of a transac- tion block that was put0 码力 | 2224 页 | 5.05 MB | 1 年前3PostgreSQL 8.4 Documentation
control the statements in a transaction in a more granular fashion through the use of save- points. Savepoints allow you to selectively discard parts of the transaction, while committing the rest. After defining Keep in mind that either releasing or rolling back to a savepoint will automatically release all savepoints that were defined after it. All this is happening within the transaction block, so none of it ac- count, only to find later that we should have credited Wally’s account. We could do it using savepoints like this: BEGIN; UPDATE accounts SET balance = balance - 100.00 WHERE name = ’Alice’; SAVEPOINT0 码力 | 2371 页 | 5.09 MB | 1 年前3
共 40 条
- 1
- 2
- 3
- 4