使用isql导入脚本的方式Load数据到IQ中时,出现下面错误:
(0 rows affected)
Msg 21, Level 14, State 0:
SQL Anywhere Error -1013027: Number of bytes (2) for a column from an input file
has exceeded the maximum allowed (512).
-- (db_RecScanner.cxx 725)
原因说明:
行结束的分隔符如果使用的是 '\n' 或者 '\X0a'或者 '\Xob' ,则在操作系统中的编码机不一样,导致寻找换行符的时候,寻找失败,出现上面的错误。
下面是我的解决办法:
如果是使用bcp导出的文件,那么在bcp语句的最后面,加上 -r@@@
然后在Load脚本的最后一个字段后面填写行分隔符的时候,改成'@@@'
这样再导入即可!
参考的是下面这篇不知道是什么文的内容:
Problème:
L'éxecution du load table génére ce message d'erreur:
Could not execute statement.
Number of bytes (3) for a column from an input file has exceeded the
maximum allowed (512).
-- (db_RecScanner.cxx 725)