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 Anywhere 图形管理工具 » 使用 Interactive SQL

 

在 Interactive SQL 中查看 HTML 和 XML 数据

可以在 Interactive SQL 中查看 HTML 和 XML 数据。

 ♦  查看 HTML 和 XML 数据 (Interactive SQL)
  1. 连接到数据库。

  2. 执行一个将返回含 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>
    
    '
  3. 在结果集中,选择含 HTML 内容的单元格,单击 [...],然后选择 [在窗口中查看]。

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

  4. 单击 [取消] 关闭窗口。