1.查询之前某一时间的数据信息

select * from bt_mb_new as of timestamp to_timestamp('2020-11-28 20:00:00','yyyy-mm-dd hh24:mi:ss');  
bt_mb_new :表名 
2020-11-28 20:00:00 :要回退到的时间

2.启用行移动功能

alter table bt_mb_new enable row movement;

3.执行闪回语句

flashback table bt_mb_new to timestamp to_timestamp('2020-11-28 20:00:00','yyyy-mm-dd hh24:mi:ss');

 

相关文章: