oracle 误删除数据恢复(delete)

oracle 误删除数据恢复

可以采用如下语句处理:

select * from 表名 as of timestamp to_Date('2014-02-27 14:28:00', 'yyyy-mm-dd hh24:mi:ss')

以上语句标示,可以查询出该表在某个时间点的数据,既然可以查询出以往的数据,那就可以直接恢复了。

如下语句

insert into 表名  select * from 表名 as of timestamp to_Date('2014-02-27 14:28:00', 'yyyy-mm-dd hh24:mi:ss')

但是,如果数据删除后,数据表结构变化了,该种方法就不中用了,

此时在查询的时候会提示:无法读取数据,表定义已更改

原文地址:https://www.cnblogs.com/ellanjianx/p/3571866.html