Prayer

在一般中寻求卓越
posts - 1256, comments - 190, trackbacks - 0, articles - 0
  C++博客 :: 首页 :: 新随笔 :: 联系 :: 聚合  :: 管理

How to import tab delimited file into IBM DB2 UDB table

Posted on 2008-08-19 19:43 Prayer 阅读(484) 评论(0)  编辑 收藏 引用 所属分类: DB2
I need to import tab delimited data into a DB2 UDB table. Character strings are not delimited.
The import command fails

IMPORT FROM "mytable.del" OF DEL MODIFIED BY COLDEL0X09 MESSAGES "mytable.log" INSERT INTO mytable;

Fails with a message for each row

SQL3116W  The field value in row "1" and column "2" is missing, but the target
column is not nullable.

I have checked the input file and it does have tab characters delimiting fields so it would appear that the lack of character string delimiters is causing a problem.

I have tried CHARDEL"" along with COLDEL0X09 with same result (as expected, I guess).

The import file was produced by another IBM product, iSeries Access for Windows data transfer facility.

Question: How import a tab delimited file with no character string delimiters into a DB2 UDB table.

只有注册用户登录后才能发表评论。
网站导航: 博客园   IT新闻   BlogJava   知识库   博问   管理