CLEAR_DIRECTED_QUERY_USAGE
Resets the counter in the DIRECTED_QUERY_STATUS table.
Resets the counter in the DIRECTED_QUERY_STATUS table for a single query or for all queries.
This is a meta-function. You must call meta-functions in a top-level SELECT statement.
Behavior type
VolatileSyntax
CLEAR_DIRECTED_QUERY_USAGE( [ 'query-name' ] )
Arguments
query-name
- The name of the directed query to reset. If omitted, the function resets counters for all queries.
Privileges
SuperuserExamples
In the following example, three directed queries have been used:
After calling the function for one of the queries, its counter is reset to 0: