XMLDOCUMENT Syntax - Advanced SQL Engine - Teradata Database

XML Data Type

Product
Advanced SQL Engine
Teradata Database
Release Number
17.10
Published
July 2021
Language
English (United States)
Last Update
2021-07-28
dita:mapPath
kxe1590704060061.ditamap
dita:ditavalPath
kxe1590704060061.ditaval
dita:id
B035-1140
lifecycle
previous
Product Category
Teradata Vantageā„¢
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.