From 87d232c812f8fc6a710b7fccb8a57110402d2b13 Mon Sep 17 00:00:00 2001 From: Kenan Yao Date: Tue, 16 Jun 2020 11:48:52 +0800 Subject: [PATCH 1/2] update syntax gram for `kill`, `prepare` and `show stats_healthy` --- sql-statements/sql-statement-kill.md | 4 ++++ sql-statements/sql-statement-prepare.md | 4 ++++ statistics.md | 12 ++++++------ 3 files changed, 14 insertions(+), 6 deletions(-) diff --git a/sql-statements/sql-statement-kill.md b/sql-statements/sql-statement-kill.md index 90695ef27c1bb..ef40a83c73448 100644 --- a/sql-statements/sql-statement-kill.md +++ b/sql-statements/sql-statement-kill.md @@ -17,6 +17,10 @@ By design, this statement is not compatible with MySQL by default. This helps pr ![KillStmt](/media/sqlgram/KillStmt.png) +**KillOrKillTiDB:** + +![KillOrKillTiDB](/media/sqlgram/KillOrKillTiDB.png) + ## Examples ```sql diff --git a/sql-statements/sql-statement-prepare.md b/sql-statements/sql-statement-prepare.md index 093c44f0e6b56..33fc7489a0125 100644 --- a/sql-statements/sql-statement-prepare.md +++ b/sql-statements/sql-statement-prepare.md @@ -15,6 +15,10 @@ The `PREPARE` statement provides an SQL interface to server-side prepared statem ![PreparedStmt](/media/sqlgram/PreparedStmt.png) +**PrepareSQL:** + +![PrepareSQL](/media/sqlgram/PrepareSQL.png) + ## Examples ```sql diff --git a/statistics.md b/statistics.md index 74923a6291952..0cc3c1e3cc018 100644 --- a/statistics.md +++ b/statistics.md @@ -190,13 +190,13 @@ Currently, the `SHOW STATS_META` statement returns the following 6 columns: You can use the `SHOW STATS_HEALTHY` statement to check the health state of tables and roughly estimate the accuracy of the statistics. When `modify_count` >= `row_count`, the health state is 0; when `modify_count` < `row_count`, the health state is (1 - `modify_count`/`row_count`) * 100. -The syntax is as follows. You can use `ShowLikeOrWhere` to filter the information you need: +The synopsis of `SHOW STATS_HEALTHY` is: -{{< copyable "sql" >}} +![ShowStatsHealthy](/media/sqlgram/ShowStatsHealthy.png) -```sql -SHOW STATS_HEALTHY [ShowLikeOrWhere]; -``` +and the synopsis of `ShowLikeOrWhereOpt` part is: + +![ShowLikeOrWhereOpt](/media/sqlgram/ShowLikeOrWhereOpt.png) Currently, the `SHOW STATS_HEALTHY` statement returns the following 4 columns: @@ -312,4 +312,4 @@ Syntax: LOAD STATS 'file_name' ``` -`file_name` is the file name of the statistics to be imported. \ No newline at end of file +`file_name` is the file name of the statistics to be imported. From 1b61e4cc5f8220998437e8440f3130425dc84634 Mon Sep 17 00:00:00 2001 From: Keke Yi <40977455+yikeke@users.noreply.github.com> Date: Tue, 16 Jun 2020 12:03:55 +0800 Subject: [PATCH 2/2] Update statistics.md --- statistics.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/statistics.md b/statistics.md index 0cc3c1e3cc018..1f137e7eb61ed 100644 --- a/statistics.md +++ b/statistics.md @@ -194,7 +194,7 @@ The synopsis of `SHOW STATS_HEALTHY` is: ![ShowStatsHealthy](/media/sqlgram/ShowStatsHealthy.png) -and the synopsis of `ShowLikeOrWhereOpt` part is: +and the synopsis of the `ShowLikeOrWhereOpt` part is: ![ShowLikeOrWhereOpt](/media/sqlgram/ShowLikeOrWhereOpt.png)