能否查看ip和修改记录?

解决方案 »

  1.   

    假設你是一小時內改的數據,可以類似下面的語句查詢出來
    select * from test as of timestamp systimestamp - interval '1' hour;
      

  2.   

    --用flashback ,查看某个时间的表数据(你删除前的) 然后可以改回来
    select * from mytestemployee as of timestamp to_date('20101021 15:30:01','yyyymmdd hh24:mi:ss'
      

  3.   

    如果没有提交,就rollback,如果提交了,
    10g以上可以利用flashback。9i以下不了解。
      

  4.   

    簡單的方法是,你先創建一個臨時表來保存修改前的數據
    create table temp_test as select * from test as of timestamp systimestamp - interval '1' hour;
    然後truncate該表
    truncate table test;
    最後從臨時表中導入
    insert into test select * from temp_test;
    commit;
      

  5.   

    flashback query 或 flashback table