Oracle rollback notes

Source: Internet
Author: User

Oracle rollback notes savepoint a1; -- set a storage Point a1; update tmp set username = 'zhangsan' where userid = '000000' -- modify a data savepoint a2; -- set a storage Point a1; update tmp set username = 'lily' where userid = '000000' -- modify a data rollback to a2; -- roll back to the storage point a2. All data modifications after the a2 save point are considered invalid. Rollback to a1; -- here, You can refresh from the a2 save point to the a1 save point. In this case, all data modifications after the a1 save point are considered invalid. Rollback; -- roll back all. That is, all data modifications after the transaction is committed are revoked. Commit; -- commit the transaction to commit the rolled back transaction and delete all save points. Note: We can roll back from a2 to a1, but not from a1 to a2. That is to say, you can only roll back from the previous point!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.