【问题标题】:What is the best way to load a large Excel sheet to an Informix table?将大型 Excel 工作表加载到 Informix 表的最佳方法是什么?
【发布时间】:2018-12-26 01:24:11
【问题描述】:

我想将数据从 Excel 工作表插入到 Informix 表中。此 Excel 工作表包含近 300000 记录。加载这些数据的最佳方式是什么?我可以使用 IBM ipload 软件来完成这项工作吗?

【问题讨论】:

标签: excel informix


【解决方案1】:

我不熟悉ipload,但我使用LOAD/UNLOAD和UNL格式,因为它很简单:

  1. 将 Excel 文件导出为 CSV 文本
  2. 将其转换为 Informix dbaccess 实用程序可读的 UNL 文件,请参阅:https://www.ibm.com/support/knowledgecenter/SSGU8G_12.1.0/com.ibm.mig.doc/ids_mig_144.htm
  3. 使用 dbaccess LOAD 命令导入

如果您不熟悉 UNL 文件格式,请在表格中填写一些记录并使用 UNLOAD 语句将其导出。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2012-12-13
    • 1970-01-01
    • 2011-01-04
    • 2010-12-30
    • 1970-01-01
    • 1970-01-01
    • 2021-06-01
    • 1970-01-01
    相关资源
    最近更新 更多