- 论坛徽章:
- 0
|
环境 AIX 5.3
DB2/6000 8.2.7
遇到一个很奇怪的问题,我现在需要修改表的表结构,要把几个char字段增加长度
1。我先把这个表export 成一个ixf文件
2。修改ddl,把字段增加,drop掉然后create
3。然后用load from 。。of ixf 的方式导入近来。
结果发现有些行出现被截断的消息,,总文件有3000万多行,出现问题只有10多行,而且不是我改过的字段且只有1 两字段出现问题,而且不是连续的,错误如下:
- SQL3125W The character data in row "10027770" and column "10" was truncated
- because the data is longer than the target database column.
- SQL3125W The character data in row "11332606" and column "10" was truncated
- because the data is longer than the target database column.
- SQL3125W The character data in row "11376771" and column "10" was truncated
- because the data is longer than the target database column.
复制代码
export ,load的命令很简单
- db2 "export to $1/mytab.acct_a.ixf of ixf select * from mytab.acct_a "
- 然后
- db2 "load from $1/mytab.acct_a.ixf of ixf modified by IDENTITYIGNORE insert into mytab.acct_a "
复制代码
很是奇怪,我查询了被截断的数据,出现了乱码: LMXV1¿
[ 本帖最后由 Law 于 2008-9-12 15:01 编辑 ] |
|