1. select * from Your_Table t //查询Your_Table中所有的数据,可以看到三条数据
2. delete Your_Table //删除Your_Table中所有的数据,三条数据消失
3. select * from Your_Table t //无数据。
4. insert into Your_Table select * from Your_Table as of timestamp to_Date(\'2015-07-30 10:00:00\', \'yyyy-mm-dd hh24:mi:ss\') //已将误删除数据插入表中
5. select * from Your_Table t //又会看到三条数据。
我们来分析下第四步,注意这句:
select * from Your_Table as of timestamp to_Date(\'2011-01-19 15:28:00\', \'yyyy-mm-dd hh24:mi:ss\'),什么意思呢, 找到Your_Table在2015-07-30 10:00:00这个时间点的所有数据,既然找到了,你想怎么操作都可以了。