当前位置: 代码迷 >> Oracle管理 >> sqlldr 最后一个字段为空怎么处理,导入不正确
  详细解决方案

sqlldr 最后一个字段为空怎么处理,导入不正确

热度:566   发布时间:2016-04-24 05:19:46.0
sqlldr 最后一个字段为空怎么办,导入不正确
最近写了一个ctl 用于导入数据 格式如下:
SQL code
options (rows=40000,bindsize=209714452,readsize=209714452,skip_index_maintenance=true)load datainfile '/opt/oracle/cbiz128.txt'append into table T_BIZTRAILING 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'
)