Skip to main content
Version: 3.2



Deletes CBO statistics, which include basic statistics and histograms. For more information, see Gather statistics for CBO.

You can delete statistical information you do not need. When you delete statistics, both the data and metadata of the statistics are deleted, as well as the statistics in expired cache. Note that if an automatic collection task is ongoing, previously deleted statistics may be collected again. You can use SHOW ANALYZE STATUS to view the history of collection tasks.

This statement is supported from v2.4.


Delete basic statistics

DROP STATS tbl_name

Delete histograms

ANALYZE TABLE tbl_name DROP HISTOGRAM ON col_name [, col_name];


For more information about collecting statistics for CBO, see Gather statistics for CBO.