Oracle 閃回查詢


--使用閃回查詢獲取丟失的行

select *
from sys_user as of timestamp to_timestamp('2017-11-22 17:55:00', 'yyyy-mm-dd hh24:mi:ss')
where name = 'lee';

--使用閃回查詢還原丟失的行

insert into sys_user
(select *
from sys_user as of timestamp to_timestamp('2017-11-22 17:55:00', 'yyyy-mm-dd hh24:mi:ss')
where name = 'lee');


免責聲明!

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



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