Oracle sqlldr

LOAD DATA
INFILE *
INTO TABLE test
FIELDS TERMINATED BY X'9'
TRAILING NULLCOLS
(
    c2 "upper(:c2)",
    c3 date "yyyymmdd",  --这里指定日期格式
    c1 "SEQ_test_c1.nextval"
)

外部表:

organization external

(

  type ORACLE_LOADER

  default directory DMP_DIR

  access parameters

  (

    records delimited by newline

    badfile 'emp_new%a_%p.bad'

    logfile 'emp_new%a_%p.log'

    fields terminated by ','

    optionally enclosed by '"'

    missing field values are null

    ( employee_id, first_name, last_name, email ,phone_number,

      hire_date char date_format date mask "yyyy-mm-dd hh24:mi:ss",job_id,

      salary, commission_pct, manager_id, department_id )

  )

相关文章:

  • 2021-11-21
  • 2021-10-18
  • 2022-12-23
  • 2021-11-17
  • 2021-06-24
猜你喜欢
  • 2022-12-23
  • 2021-04-03
  • 2021-09-29
  • 2021-05-17
  • 2022-12-23
  • 2021-08-08
  • 2021-10-21
相关资源
相似解决方案