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

SQL Anywhere 12.0.1 » SQL Anywhere 服务器 - SQL 的用法 » 远程数据和批量操作 » 数据导入和导出

 

Adaptive Server Enterprise 兼容性

您可以使用 BCP FORMAT 子句在 SQL Anywhere 和 Adaptive Server Enterprise 之间导入和导出文件。如果要将 BLOB 数据从 SQL Anywhere 导出,以在 Adaptive Server Enterprise 中使用,则可将 BCP FORMAT 子句与 UNLOAD TABLE 语句结合使用。

当使用 BCP 输出命令从 Adaptive Server Enterprise 导出文件以便将数据导入到 SQL Anywhere 时,数据必须为文本/ASCII 格式且必须以逗号分隔。可以对 BCP 输出命令使用 -c 选项,使其以文本/ASCII 格式输出数据。-t 选项用于更改分隔符,该选项在缺省情况下为一个跳格符。如果不更改分隔符,则在向 SQL Anywhere 数据库导入数据时必须在 LOAD TABLE 语句中指定 DELIMITED BY '\x09'

 另请参见