Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 11.0.1 (中文) » UltraLite - 数据库管理和参考 » UltraLite 故障排除

 

将 ASCII 数据导入新数据库

症状

您创建了一个新的 UltraLite 数据库,但有一个 csv ASCII 数据文件无法导入。

解释

任何 UltraLite 管理工具都不支持 csv 格式。

建议

可以尝试以下技术:

  • 使用 Interactive SQL (dbisql) 导入数据。可以连接到 UltraLite 数据库,然后选择 [数据] » [Import Data]。或者,可以连接到 UltraLite 数据库,然后运行 INPUT 语句(此语句不能在 UltraLite PreparedStatement 对象中使用)。

    注意

    UltraLite 需要主键。尽管 Interactive SQL 可以为您创建表,但它不能为表自动创建主键。出于此目始终连接您已创建的 UltraLite 数据库。

  • 如果希望作为批处理过程的一部分合并此功能,您必须写出自己的代码。

另请参见