xml
Description
One XML document containing runtime column metadata, nested values and a row count. This is output-only.
Output only. Select it with FORMAT xml. Names ignore ASCII case; use the snake_case name shown here.
One document contains runtime column metadata, nested value representations and the result row count. Names and text are escaped according to the XML output rules.
The format is output-only. It is a result envelope rather than an XML import parser; use another supported input format to load rows.
text
SELECT expressions FORMAT xml;Example usage
sql
SELECT CAST(7 AS Int64) AS id, 'Ada' AS name FORMAT xml;text
<?xml version='1.0' encoding='UTF-8' ?>
<result>
<meta>
<columns>
<column>
<name>id</name>
<type>Int64</type>
</column>
<column>
<name>name</name>
<type>String</type>
</column>
</columns>
</meta>
<data>
<row>
<id>7</id>
<name>Ada</name>
</row>
</data>
<rows>1</rows>
</result>Format settings
Use a statement SETTINGS clause; these options are not persisted by SET.
There are no format-specific settings.