RemoveQueryListEntry - Teradata Database - Teradata Vantage NewSQL Engine

Application Programming Reference

Product
Teradata Database
Teradata Vantage NewSQL Engine
Release Number
16.20
Published
March 2019
Language
English (United States)
Last Update
2019-05-02
dita:mapPath
vwf1492987142269.ditamap
dita:ditavalPath
changebar_rev_16_20_exclude_audience_ie.ditaval
dita:id
B035-1090
lifecycle
previous
Product Category
Teradata Vantage™

Removes an individual query from a query list.

Definition

REPLACE PROCEDURE TDSTATS.RemoveQueryListEntry
 (IN QueryListName VARCHAR(128) CHARACTER SET UNICODE,
  IN QueryID       DECIMAL(18,0))
           .
           .
           .
;

Input Parameters

Parameter Description
QueryListName Name of the existing query list containing the query to be removed.
This input parameter cannot be NULL.
QueryID DBQL assigned ID of the query.
This input parameter cannot be NULL.

Usage Notes

When you specify an individual query to remove, it must have already been added to an existing query list by a call to the AddQueryListEntry external stored procedure. All other queries in the query list will remain intact.

You can view the query list data in the TDSTATS.QueryList and TDSTATS.QueryListEntry tables and the names of the query lists in the TDSTATS.QueryList.ListName column.

Example: Using RemoveQueryListEntry

The following example shows how to remove an individual query (for example, query 8675309) from the query list named MySlowQueries.

CALL TDSTATS.RemoveQueryListEntry('MySlowQueries',8675309);

Related Topics

For more information about the AddQueryListEntry external stored procedure, see AddQueryListEntry.