diff --git a/statistics.md b/statistics.md index 60f7b7da4f638..f3a6ca9bffdd6 100644 --- a/statistics.md +++ b/statistics.md @@ -237,7 +237,7 @@ Currently, the `SHOW STATS_HISTOGRAMS` statement returns the following 8 columns You can use the `SHOW STATS_BUCKETS` statement to view each bucket of the histogram. -Syntax as follows: +The syntax is as follows: {{< copyable "sql" >}} @@ -245,6 +245,10 @@ Syntax as follows: SHOW STATS_BUCKETS [ShowLikeOrWhere] ``` +The diagram is as follows: + +![SHOW STATS_BUCKETS](/media/sqlgram/SHOW_STATS_BUCKETS.png) + This statement returns information about all the buckets. You can use `ShowLikeOrWhere` to filter the information you need. Currently, the `SHOW STATS_BUCKETS` statement returns the following 10 columns: