使用sqlldr 遇到的问题

来源:互联网 发布:冠趣网络 编辑:程序博客网 时间:2024/06/04 01:03

错误代码:SQL*Loader-457: Comparison text of CONTINUEIF LAST must have length 1 not 63

先到http://docs.oracle.com/cd/A57673_01/DOC/server/doc/MSG73/ch7.htm   

去查找错误原因

下面附控制文件代码

load data
infile *
continueif last = '\\'  -- 可以查看资料,了解continueif 的使用方法http://www.doc88.com/p-774671380387.html  或者 http://www.cnblogs.com/twyth/articles/1547138.html
into table *
truncate 
fields terminated by ' '
(  
字段名
)


之前控制文件 continueif last = '\' 错误原因是sqlldr可能将 '\' 看做转义字符 .


这样问题就解决了

0 0