执行如下SQL将test_temp表中的数据恢复到 2011 04 29 11:06:00
注意,这里一定要先删除全部数据,否则可能会导致数据重复或者新建一个表结构和test_temp结构相同的表,把数据导入到新表中
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;
24小时的
select *
from cm_custom_sort as of timestamp to_timestamp('20160808 16:40:01', 'yyyymmdd hh24:mi:ss')
附:truncate后的数据是无法恢复的
truncate table test_temp;
注意,这里一定要先删除全部数据,否则可能会导致数据重复或者新建一个表结构和test_temp结构相同的表,把数据导入到新表中
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;
24小时的
select *
from cm_custom_sort as of timestamp to_timestamp('20160808 16:40:01', 'yyyymmdd hh24:mi:ss')
附:truncate后的数据是无法恢复的
truncate table test_temp;
本文介绍了一种使用SQL语句来恢复指定时间点的数据的方法,包括如何清空表中的现有数据,以及通过特定的时间戳来选择性地恢复数据。同时强调了TRUNCATE操作后数据不可恢复的特点。
1279

被折叠的 条评论
为什么被折叠?



