可以在 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> ' |
在结果集中,选择含 HTML 内容的单元格,单击 [...],然后选择 [在窗口中查看]。
将出现 [列 column-name 的值] 窗口。
单击 [取消] 关闭窗口。
![]() |
使用DocCommentXchange 讨论此页。
|
版权 © 2010, iAnywhere Solutions, Inc. - SQL Anywhere 12.0.0 |