17.10 - XMLDOCUMENT Syntax - Advanced SQL Engine - Teradata Database

Teradata Vantageā„¢ - XML Data Type

Product
Advanced SQL Engine
Teradata Database
Release Number
17.10
Release Date
July 2021
Content Type
Programming Reference
Publication ID
B035-1140-171K
Language
English (United States)
XMLDOCUMENT (
  XML_value_expr
  [ RETURNING { CONTENT | SEQUENCE } ]
)

Syntax Elements

XML_value_expr
An instance of the XML type. If XML_value_expr is not of XML type, it is implicitly cast to XML type. If the cast is not supported, an error is raised. If XML_value expr is NULL, the result is NULL.
RETURNING CONTENT
The return value is a document node with one or more child element nodes.
RETURNING SEQUENCE
The return value is a sequence (an ordered collection of items, each of which can either be a valid Xquery node or atomic value). This is the default.