TO_XML

functionsupportedCore SQL functions

docs.snowflake.com ↗

Conversion functionsSemi-structured and structured data functions

Converts a VARIANT to a VARCHAR that contains an XML representation of the value. If the input is NULL, the result is also NULL.

Syntax

TO_XML( <expression> )

Parameters

NameRequiredDescription
expressionrequiredAn expression that evaluates to a VARIANT or that can be cast to a VARIANT.

Returns

The data type of the returned value is VARCHAR.

Usage notes

See also

Referenced by