17.10 - Example: Serialize XMLTextDoc Document Into a String - Advanced SQL Engine - Teradata Database

Teradata Vantageā„¢ - Data Dictionary

Product
Advanced SQL Engine
Teradata Database
Release Number
17.10
Release Date
July 2021
Content Type
Administration
Programming Reference
Publication ID
B035-1092-171K
Language
English (United States)

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;