SQL> alter session set nls_date_format='hh24:mi:ss';
SQL> select sysdate from dual;
SYSDATE
--------
16:04:12
SQL> delete from emp;
2 rows deleted.
SQL> commit;
Commit complete.
SQL> select * from emp;
no rows selected
SQL> select * from emp
2 as of timestamp
3 to_timestamp('2012-04-15 16:04:12','yyyy-mm-dd hh24:mi:ss');
SQL> insert into emp
2 select * from emp
3 as of timestamp
4 to_timestamp('2012-04-15 16:04:12','yyyy-mm-dd hh24:mi:ss');
2 rows created.
SQL> commit;
------------------------------------------------------------------------------------------------
update回之前指定列的恢复
update emp e1 set e1.salary=commit;