Capturing EXPLAIN Text Output in XML Format - Teradata Database

SQL Data Manipulation Language

Product
Teradata Database
Release Number
15.10
Language
English (United States)
Last Update
2018-10-06
dita:id
B035-1146
lifecycle
previous
Product Category
Teradata® Database

Capturing EXPLAIN Text Output in XML Format

The IN XML option returns the EXPLAIN text as XML text rather than as plain English text. See SQL Request and Transaction Processing for the XML plan attributes and the XML schema used by the XML output produced by the IN XML option.

The EXPLAIN request modifier can also specify that the output be returned in one of four possible formats:

  • As XML text
  • You specify this with the IN XML option.

  • As XML text, but without any associated DDL text.
  • You specify this with the IN XML NODDLTEXT option.

    A complementary option for the BEGIN QUERY LOGGING and REPLACE QUERY LOGGING statements optionally creates a compact XML version of the information that can be stored in a DBQL table. See “BEGIN QUERY LOGGING” and “REPLACE QUERY LOGGING” in SQL Data Definition Language.