您的位置:首页 > 数据库 > Oracle

oracle误删数据恢复方法

2017-04-10 10:27 543 查看
1. select * from A         //查询A中所有的数据,可以看到三条数据

 2. delete A                      //删除A中所有的数据,三条数据消失

 3. select * from A        //无数据。

 4. insert into A select * from A as of timestamp to_Date('2011-01-19 15:28:00', 'yyyy-mm-dd hh24:mi:ss')             //已将误删除数据插入表中

 5. select * from A        //又会看到三条数据。

分析一下第四步:

select * from A as of timestamp to_Date('2011-01-19 15:28:00', 'yyyy-mm-dd hh24:mi:ss'),什么意思呢, 找到A在2011-01-19 15:28:00这个时间点的所有数据,既然找到了,你想怎么操作都可以了。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: