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