Oracle 修改 提交后 回退


1、 -- 查詢你執行update 語句之前的數據 精確到什么時間

  select * from 表名 as of timestamp to_timestamp('2017-07-21 17:16:38', 'yyyy-mm-dd hh24:mi:ss');

2、 -- 開啟可移動數據命令,執行完就可以回滾數據

   alter table 表名 enable row movement;

3、 --正式回滾 update 語句前的數據

    flashback table 表名 to timestamp TO_TIMESTAMP('2017-07-21 17:16:38', 'yyyy-mm-dd hh24:mi:ss');

只是針對ORACLE 處理。


---------------------



來源:CSDN
原文:https://blog.csdn.net/dan521chuang/article/details/78431912


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM