zoukankan      html  css  js  c++  java
  • sqlldr control 类型参数

    Specifying the Position of a Data Field

    To load data from the datafile, SQL*Loader must know the length and location of the field. To specify the position of a field in the logical record, use the POSITION clause in the column specification. The position may either be stated explicitly or relative to the preceding field. Arguments to POSITION must be enclosed in parentheses. The start, end, and integer values are always in bytes, even if character-length semantics are used for a datafile.

    The syntax for the position specification (pos_spec) clause is as follows:

    Description of pos_spec.gif follows
    Description of the illustration pos_spec.gif

    https://docs.oracle.com/cd/B28359_01/server.111/b28319/ldr_field_list.htm#i1006477

    .
    1  (hiredate  SYSDATE,
    2     deptno  POSITION(1:2)  INTEGER EXTERNAL(2)
                  NULLIF deptno=BLANKS,
    3       job   POSITION(7:14)  CHAR  TERMINATED BY WHITESPACE
                  NULLIF job=BLANKS  "UPPER(:job)",
           mgr    POSITION(28:31) INTEGER EXTERNAL 
                  TERMINATED BY WHITESPACE, NULLIF mgr=BLANKS,
           ename  POSITION(34:41) CHAR 
                  TERMINATED BY WHITESPACE  "UPPER(:ename)",
           empno  POSITION(45) INTEGER EXTERNAL 
                  TERMINATED BY WHITESPACE,
           sal    POSITION(51) CHAR  TERMINATED BY WHITESPACE
                  "TO_NUMBER(:sal,'$99,999.99')",
    4      comm   INTEGER EXTERNAL  ENCLOSED BY '(' AND '%'
                  ":comm * 100"
        )
  • 相关阅读:
    mac lsof使用查看端口
    mac 安装gevent报错
    vim命令学习
    linux批量关闭进程
    坐标点转换
    screen命令记录
    hashlib模块
    PyYAML和configparser模块讲解
    xml处理模块
    json、pickleshelve模块(超级好用~!)讲解
  • 原文地址:https://www.cnblogs.com/kakaisgood/p/13938364.html
Copyright © 2011-2022 走看看