|
|
发表于 2012/4/17 10:30:17
|
显示全部楼层
大侠,你好!
我下载了您这个案例,表和包都建好了,怎么导入数据啊?
OPTIONS (SKIP=1)
LOAD DATA
--INFILE 'D:\Oracle EBS\Development\interface\CBIZ CODE\CBIZ CODE_test'
INFILE '&1'
APPEND INTO TABLE XXUSP_CBIZ_DIA_DATA_STG
FIELDS TERMINATED ","
OPTIONALLY ENCLOSED '"'
TRAILING NULLCOLS
(
FILE_TYPE CONSTANT 'CBIZ',
NATIONAL_IDENTIFIER "LTRIM(RTRIM(:NATIONAL_IDENTIFIER))",
LAST_NAME "LTRIM(RTRIM( AST_NAME))",
FIRST_NAME "LTRIM(RTRIM(:FIRST_NAME))",
ELEMENT "LTRIM(RTRIM(:ELEMENT))",
FROM_DATE "LTRIM(RTRIM(:FROM_DATE))",
COVERAGE "LTRIM(RTRIM(:COVERAGE))",
CONTRIBUTION CHAR "TO_NUMBER(LTRIM(RTRIM(:CONTRIBUTION)))",
AMOUNT CHAR TERMINATED BY WHITESPACE "TO_NUMBER(LTRIM(RTRIM(:AMOUNT)))",
Status CONSTANT 'NEW',
CREATION_DATE Sysdate,
CREATED_BY CONSTANT '-1',
LAST_UPDATE_DATE Sysdate,
LAST_UPDATED_BY CONSTANT '-1',
PROGRAM_UPDATE_DATE Sysdate
) |
|