From 028bce98d07f6062282a8b94fabd39e3b1f70d16 Mon Sep 17 00:00:00 2001 From: Kenan Yao Date: Tue, 16 Jun 2020 12:09:08 +0800 Subject: [PATCH] cherry pick #2880 to release-4.0 Signed-off-by: ti-srebot --- 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 c993764fca4e8..9dd4e324edf31 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 dfdca42a840b7..2ff41cca83989 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 4ce69caa93121..4ced566a9af74 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 the `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.