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

SAP Sybase SQL Anywhere 16.0 (中文) » SQL Anywhere 服务器 - 数据库管理 » 数据库管理 » SQL Anywhere 图形管理工具 » Interactive SQL

 

在 Interactive SQL 中查看 HTML 和 XML 数据

在 Interactive SQL 中,可通过单独的窗口来查看查询结果集的 HTML 和 XML 数据。

前提条件

必须具有执行查询所需的特权。

 任务
  1. 在 Interactive SQL 中,连接到数据库。

  2. 执行一个将返回含 HTML 或 XML 数据的结果集的查询。

  3. 在结果中,选择包含 HTML 或 XML 内容的单元格,单击 [...],然后单击 [在窗口中查看]。

结果

将出现 [column-name 的值] 窗口。

下一个

单击 [OK] 关闭窗口。

要查看包含 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>';