zoukankan      html  css  js  c++  java
  • oracle 回复以前的数据

    • 一、

      执行如下SQL将test_temp表中的数据恢复到 2014 05 28  11:00:00 

      注意,这里一定要先删除全部数据,否则可能会导致数据重复

      delete from 表名;
      insert into 表名 select *
          from 表名 as of timestamp to_timestamp('2014-05-28 11:00:00','yyyy-mm-dd hh24:mi:ss')

      commit;

    • 二、 select timestamp_to_scn(to_timestamp('2014-05-27 11:00:00','YYYY-MM-DD HH:MI:SS')) from dual; 或select * from sys.smon_scn_time  order by time_dp desc;得到结果 71547785 然后   insert into test_tmp select * from test_tmp AS OF SCN 71547785
  • 相关阅读:
    Day13
    Day12
    Day11
    Day10
    Day9
    Day8
    Day7
    mac上使用gitlab拉项目报错Permissions 0644 for ...
    vue-cli3使用svg
    js合并多个array
  • 原文地址:https://www.cnblogs.com/krlin/p/9057318.html
Copyright © 2011-2022 走看看