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');

posted @ 2017-12-19 17:00  忧郁香蕉  阅读(7247)  评论(0编辑  收藏  举报