From 421e824afef46755aca6c7f187ec32a63115e7bd Mon Sep 17 00:00:00 2001 From: Keke Yi <40977455+yikeke@users.noreply.github.com> Date: Tue, 30 Jun 2020 16:11:16 +0800 Subject: [PATCH] cherry pick #3076 to release-4.0 Signed-off-by: ti-srebot --- statistics.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/statistics.md b/statistics.md index 221444e32514a..cf0bf70845632 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: