合并在外部表中的列

时间:2019-07-03 16:49:36

标签: sql oracle ddl

我当前正在使用外部表来加载数据,但是我看到当其中一列的内容为“ía”时,两列的数据将合并。有办法解决这个问题吗?

create table table_name_ext (
col1 varchar2(20),
col2 VARCHAR2(25),
col3 VARCHAR2(50),
col4 VARCHAR2(25),

)
organization external
(type oracle_loader
default directory table_name_reports
access parameters
(
records delimited by NEWLINE
badfile T_LOG: 'table1.bad'
logfile T_LOG: 'table2.log'
readsize 5000000
skip 1
fields terminated by X'9' LRTRIM
MISSING FIELD VALUES ARE NULL
reject rows with all null fields
(
col1 char(20) terminated by X'9',
col2 char(25) terminated by X'9',
col3 char(50) terminated by X'9',
col4 char(25) terminated by X'9',

)
)
location
(
'FileName
)
) reject limit unlimited;

0 个答案:

没有答案