16.20 - Example: Serialize XMLTextDoc Document Into a String - Teradata Database - Teradata Vantage NewSQL Engine

Teradata Vantageā„¢ Data Dictionary

Product
Teradata Database
Teradata Vantage NewSQL Engine
Release Number
16.20
Published
March 2019
Language
English (United States)
Last Update
2019-05-03
dita:mapPath
zzu1512081120577.ditamap
dita:ditavalPath
TD_DBS_16_20_Update1.ditaval

This example serializes the XMLTextDoc document into a string and returns the number of bytes contained in the string.

SELECT QueryID,
CHARACTER_LENGTH(xmlserialize(document XMLTextDoc)) as PlanSize
FROM DBC.QRYLogXMLDocV
ORDER BY QueryID;