17.05 - Example: Logging Statistics Usage for All Requests by a User - Advanced SQL Engine - Teradata Database

Teradata Vantage™ - SQL Data Definition Language Syntax and Examples

Product
Advanced SQL Engine
Teradata Database
Release Number
17.05
Release Date
January 2021
Content Type
Programming Reference
Publication ID
B035-1144-175K
Language
English (United States)

This request logs statistics usage data for all DML requests executed by user_1:

     BEGIN QUERY LOGGING WITH STATSUSAGE ON user_1;

This request logs statistics usage data and detailed query plan information for all DML and selected DDL requests executed by user user_1:

     BEGIN QUERY LOGGING WITH XMLPLAN, STATSUSAGE ON user_1;