• 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"
        )
  • 相关阅读:
    GUI 之 JDialog弹窗
    GUI Swing 之 JFrame窗体
    GUI 键盘监听事件
    GUI 窗口监听事件
    GUI 鼠标监听事件,模拟画图工具
    shell编程
    Ubuntu20.04 Linux初识
    rlwrap的使用
    5个相见恨晚的Linux命令,每一个都非常实用
    Bash初识与常用命令
  • 原文地址:https://www.cnblogs.com/kakaisgood/p/13938364.html
Copyright © 2020-2023  润新知