当前位置:首页 > 数据库 > Oracle

oracle 将表中数据恢复到某个时间点

ORACLE将表中的数据恢复到某一个时间点

OracleSQL 

执行如下SQL将test_temp表中的数据恢复到 2011 04 29  11:06:00 

注意,这里一定要先删除全部数据,否则可能会导致数据重复

delete from test_temp; insert into test_temp   select *     from test_temp as of timestamp to_timestamp(‘20110429 11:06:00‘, ‘yyyymmdd HH:mi:ss‘)

commit;

 

附:truncate后的数据是无法恢复的

truncate table test_temp;

oracle 将表中数据恢复到某个时间点

标签:

本文系统来源:http://www.cnblogs.com/cxj-qldxmf/p/4613886.html


【说明】本文章由站长整理发布,文章内容不代表本站观点,如文中有侵权行为,请与本站客服联系(QQ:254677821)!

相关教程推荐

其他课程推荐