CLEAN-QUERY-STATS
Name
SinceVersion devCLEAN QUERY STATS
Description
This statement is used to clear query statistics
grammar:
1. CLEAN [ALL| DATABASE | TABLE] QUERY STATS [[FOR db_name]|[FROM|IN] table_name]];
Remarks:
- If ALL is specified, all query statistics are cleared, including database and table, admin privilege is needed
- If DATABASE is specified, the query statistics of the specified database are cleared, alter privilege for this database is needed
- If TABLE is specified, the query statistics of the specified table are cleared, alter privilege for this table is needed
Example
- Clear all statistics
- ```
- clean all query stats; ```
- Clear the specified database statistics
1. clean database query stats for test_query_db;
4. Clear the specified table statistics
1. clean table query stats from test_query_db.baseall;
Keywords
1. CLEAN, QUERY, STATS
