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

SQL Anywhere 12.0.0 (中文) » SQL Anywhere 服务器 - SQL 的用法 » 在数据库中使用 XML

 

以 XML 形式导出关系数据

SQL Anywhere 提供了以下两种用于以 XML 形式导出关系数据的方法:Interactive SQL OUTPUT 语句和 ADO.NET DataSet 对象。

利用 FOR XML 子句和 SQL/XML 函数,能够以 XML 形式从数据库的关系数据中生成结果集。然后,您可以使用 UNLOAD 语句或 xp_write_file 系统过程将生成的 XML 导出到一个文件中。


以 XML 形式从 Interactive SQL 中导出关系数据
使用 DataSet 对象以 XML 形式导出关系数据