REPLACE QUERY LOGGING SQL Statement | VantageCloud Lake - REPLACE QUERY LOGGING - Teradata Vantage

Teradata® VantageCloud Lake

Deployment
VantageCloud
Edition
Lake
Product
Teradata Vantage
Published
January 2023
ft:locale
en-US
ft:lastEdition
2024-12-11
dita:mapPath
phg1621910019905.ditamap
dita:ditavalPath
pny1626732985837.ditaval
dita:id
phg1621910019905

Creates a rule or replaces the current rule with the rule you specify.

See BEGIN QUERY LOGGING for examples.

The REPLACE QUERY LOGGING syntax corresponds to the BEGIN QUERY LOGGING syntax. REPLACE QUERY LOGGING replaces an existing rule. BEGIN QUERY LOGGING creates the new rules that REPLACE QUERY LOGGING requests replace.

If a REPLACE QUERY LOGGING request specifies a rule that does not already exist, the request creates a new rule, similar to a BEGIN QUERY LOGGING request.

ANSI Compliance

This statement is a Teradata extension to the ANSI SQL:2011 standard.

Required Privileges

EXECUTE privilege on the macro DBC.DBQLAccessMacro.

If a rule is not already set, creates a rule to satisfy the request.

To use the MODE option, EXECUTE privilege on DBC.DBQLModeMacro.