当前位置: 代码迷 >> Informix >> informix DBInport有关问题-急
  详细解决方案

informix DBInport有关问题-急

热度:2512   发布时间:2013-02-26 00:00:00.0
informix DBInport问题-急,在线等!!!
我的机器是windows2000,informix   版本是9.21.TC1,用dbexport备份,通过ftp到一台redhat9,informix   9.40.UC4W2的服务器,在dbimport时出现问题:Load   file   has   different   number   of   columns   than   table。

------解决方案--------------------------------------------------------
可能是数据不同步吧。确定你没有手工动过informix里的数据?

------解决方案--------------------------------------------------------
没有手动动过,而且我用unload导出单表.再在redhat上建立相通的表结构,load进去的时候也是报列数不同
------解决方案--------------------------------------------------------
unload to '... ' delimiter '| '
select column_list
from tabname
where ....;

load from '... ' delimiter '| '
insert into tabname (column_list);
------解决方案--------------------------------------------------------
可能是列的列表不对应,你再用unload和load试试,导出的时候不要用select *,用select column_list,导入如的时候也加上列列表,试试能不能成功。
------解决方案--------------------------------------------------------
还是数据库版本不一致造成的
  相关解决方案