日期:2014-05-17  浏览次数:21295 次

sqlldr 最后一个字段为空怎么办,导入不正确
最近写了一个ctl 用于导入数据 格式如下:
SQL code
options (rows=40000,bindsize=209714452,readsize=209714452,skip_index_maintenance=true)
load data
infile '/opt/oracle/cbiz128.txt'
append into table T_BIZ
TRAILING NULLCOLS
(BIZID integer TERMINATED BY ',',
CUSTID integer  TERMINATED BY ',',
TCOUNT integer  TERMINATED BY ',',
SENDDATE date 'yyyy-mm-dd hh24:mi:ss'  TERMINATED BY ',',
SCHDATE date 'yyyy-mm-dd hh24:mi:ss' TERMINATED BY x '0A')


但因为最后一个字段是空的 导入一直导不进去 ,数据如下:
SQL code
20120120115648,88364,1000,2012-01-20 12:01:21,
20120120115648,88364,1000,2012-01-20 12:01:21,
20120120115648,88364,1000,2012-01-20 12:01:21,
20120120115648,88364,1000,2012-01-20 12:01:21,
20120120115648,88364,1000,2012-01-20 12:01:21,
20120120115648,88364,1000,2012-01-20 12:01:21,
20120120115648,88364,1000,2012-01-20 12:01:21,
20120120115648,88364,1000,2012-01-20 12:01:21,
20120120115648,88364,1000,2012-01-20 12:01:21,
20120120115648,88364,1000,2012-01-20 12:01:21,
20120120115648,88364,1000,2012-01-20 12:01:21,
20120120115648,88364,1000,2012-01-20 12:01:21,


最后一个字段是日期型的 ,求解

------解决方案--------------------
回答错了。。。
贴出我的ctl文件(windows下的)
load data
infile 'd:\33.txt'
append into table T_BIZ
fields terminated by ','
TRAILING NULLCOLS
(BIZID,
CUSTID,
TCOUNT,
SENDDATE DATE 'YYYY-MM-DD HH24:MI:SS',
SCHDATE DATE 'YYYY-MM-DD HH24:MI:SS'
)