QUERY WATCH

The QUERY WATCH statement is used to manually manage the watch list of runaway queries in a resource group.

Synopsis

AddQueryWatchStmt
QUERYWATCHADDQueryWatchOptionList
QueryWatchOptionList
QueryWatchOptionQueryWatchOptionListQueryWatchOptionQueryWatchOptionList,QueryWatchOption
QueryWatchOption
RESOURCEGROUPResourceGroupNameRESOURCEGROUPUserVariableACTIONEqOptResourceGroupRunawayActionOptionQueryWatchTextOption
ResourceGroupName
IdentifierDEFAULT
QueryWatchTextOption
SQLDIGESTSimpleExprPLANDIGESTSimpleExprSQLTEXTResourceGroupRunawayWatchOptionTOSimpleExpr
ResourceGroupRunawayWatchOption
EXACTSIMILARPLAN
DropQueryWatchStmt
QUERYWATCHREMOVENUM

Parameters

See QUERY WATCH parameters.

MySQL compatibility

This statement is a TiDB extension to MySQL syntax.

See also