Question

investigate the ROLLBACK and SAVEPOINT statements and comment on how they relate to the already introduced...

investigate the ROLLBACK and SAVEPOINT statements and comment on how they relate to the already introduced COMMIT statement

0 0
Add a comment Improve this question Transcribed image text
Answer #1

The ROLLBACK statements restores the database to last committed state. It is also used with SAVEPOINT statements to jump to a savepoint in an ongoing transaction. If we have used the UPDATE command to make some changes into the database, and realize that those changes were not required, then we can use the ROLLBACK command to rollback those changes, if they were not committed using the COMMIT command.

SAVEPOINT statement is used to temporarily save a transaction so that you can rollback to that point whenever required.

In Short, we can rollback all update transactions to the last commit state or any savepoint declared. We can declare various savepoints to temporarily save the update transactions after the last commit which can be either committed or rollback later.

Add a comment
Know the answer?
Add Answer to:
investigate the ROLLBACK and SAVEPOINT statements and comment on how they relate to the already introduced...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT