Example: Using the Default TDQCD Database to Capture and Store a Query Plan in XML Format - Advanced SQL Engine - Teradata Database

SQL Data Definition Language Syntax and Examples

Product
Advanced SQL Engine
Teradata Database
Release Number
17.05
Published
January 2021
Language
English (United States)
Last Update
2021-01-22
dita:mapPath
ncd1596241368722.ditamap
dita:ditavalPath
hoy1596145193032.ditaval
dita:id
B035-1144
lifecycle
previous
Product Category
Teradata Vantage™

This request specifies all of the supported options and uses the default TDQCD database to store the query plan data.

     BEGIN QUERY CAPTURE AS workload wl_2;
     SELECT *
     FROM employee
     WHERE emp_code > 2;

An END QUERY CAPTURE request ends the BEGIN QUERY CAPTURE mode.

     END QUERY CAPTURE;