在 Interactive SQL 中,可通过单独的窗口来查看查询结果集的 HTML 和 XML 数据。
前提条件
必须具有执行查询所需的特权。
在 Interactive SQL 中,连接到数据库。
执行一个将返回含 HTML 或 XML 数据的结果集的查询。
在结果中,选择包含 HTML 或 XML 内容的单元格,单击 [...],然后单击 [在窗口中查看]。
例
要查看包含 HTML 的示例结果集,请运行以下查询:
SELECT '<html> <head> <meta http-equiv=Content-Type content="text/html; charset=windows-1252"> <title>Tee Shirt</title> </head> <body lang=EN-US> <p> <span style=font-size:10.0pt;font-family:Arial> We have improved the design of this perennial favorite. A sleek and technical shirt built for the trail, track, or sidewalk. UPF rating of 50+. </span> </p> </body> </html>'; |
要查看包含格式正确的 XML 的示例结果集,请运行以下查询:
SELECT '<?xml version="1.0" encoding="UTF-8"?> <parent> <children> <child name="Tim" /> <child name="Katie" /> </children> </parent>'; |
![]() |
使用DocCommentXchange讨论此页。
|
版权 © 2013, SAP 股份公司或其关联公司. - SAP Sybase SQL Anywhere 16.0 |