• 测试


    -- Create table
    create table B_SD_PACK_TMP_DETAIL
    (
      ID            number,
      TMP_ID        number,
      IMSI_NO       NVARCHAR2(40),
      DEVICE_NUMBER NVARCHAR2(11),
      GOOD_FLAG     number(2) default 0
      STATUS        number(2),
      NOTE          nvarchar2(50),
    )
    ;
    -- Create table
    create table B_SD_PACK_TMP_DETAIL
    (
      ID            number,
      TMP_ID        number,
      IMSI_NO       NVARCHAR2(40),
      DEVICE_NUMBER NVARCHAR2(11),
      GOOD_FLAG     number(2) default 0
      STATUS        number(2),
      NOTE          nvarchar2(50),
    )
    ;
    -- Create table
    create table B_SD_PACK_TMP_DETAIL
    (
      ID            number,
      TMP_ID        number,
      IMSI_NO       NVARCHAR2(40),
      DEVICE_NUMBER NVARCHAR2(11),
      GOOD_FLAG     number(2) default 0
      STATUS        number(2),
      NOTE          nvarchar2(50),
    )
    ;
     
    select 'create sequence '||sequence_name||' minvalue 1
    maxvalue 999999999999999999999999999
    start with 1
    increment by 1
    cache 20;' from user_sequences
    select 'create sequence '||sequence_name||' minvalue 1
    maxvalue 999999999999999999999999999
    start with 1
    increment by 1
    cache 20;' from user_sequences
    SQL> select dbms_flashback.get_system_change_number from dual; 
      
    GET_SYSTEM_CHANGE_NUMBER 
    ------------------------ 
                      479197 
      
    SQL> select sal from emp where ename='SCOTT'; 
      
          SAL 
    --------- 
      3000.00 
      
    SQL> update emp set sal = 5000 where ename='SCOTT'; 
      
    1 row updated 
      
    SQL> commit; 
      
    Commit complete
    SQL> select sal from emp where ename='SCOTT'; 
      
          SAL 
    --------- 
      5000.00 
      
    SQL> select sal from emp as of scn 479197 where ename='SCOTT'; 
      
          SAL 
    --------- 
      3000.00
    SQL> select dbms_flashback.get_system_change_number from dual; 
      
    GET_SYSTEM_CHANGE_NUMBER 
    ------------------------ 
                      479197 
      
    SQL> select sal from emp where ename='SCOTT'; 
      
          SAL 
    --------- 
      3000.00 
      
    SQL> update emp set sal = 5000 where ename='SCOTT'; 
      
    1 row updated 
      
    SQL> commit; 
      
    Commit complete
    SQL> select sal from emp where ename='SCOTT'; 
      
          SAL 
    --------- 
      5000.00 
      
    SQL> select sal from emp as of scn 479197 where ename='SCOTT'; 
      
          SAL 
    --------- 
      3000.00 
  • 相关阅读:
    HTML5 拖放(Drag 和 Drop)详解与实例
    JS中的六大数据类型
    关于创建本地docker仓库
    关于使用国内dock仓库,网易、DaoCloud
    关于Docker开通远程访问端口2375
    多个消费者监听同一个队列
    SQLite -附加数据库
    解密JDK8 枚举
    LoraLU
    深入理解display属性
  • 原文地址:https://www.cnblogs.com/czjie/p/2184244.html
Copyright © 2020-2023  润新知