From 246afb3a224d0378a4f4f6cd952d4a2815cd4b23 Mon Sep 17 00:00:00 2001 From: Ti Chi Robot Date: Thu, 11 Apr 2024 15:42:25 +0800 Subject: [PATCH] ebnf show config (#17025) (#17142) --- sql-statements/sql-statement-show-config.md | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/sql-statements/sql-statement-show-config.md b/sql-statements/sql-statement-show-config.md index 826b704b58df4..eeb0087602045 100644 --- a/sql-statements/sql-statement-show-config.md +++ b/sql-statements/sql-statement-show-config.md @@ -13,20 +13,19 @@ The `SHOW CONFIG` statement is used to show the current configuration of various ## Synopsis -**ShowStmt:** +```ebnf+diagram +ShowConfigStmt ::= + "SHOW" "CONFIG" ShowLikeOrWhere? -![ShowStmt](/media/sqlgram/ShowStmt.png) - -**ShowTargetFilterable:** - -![ShowTargetFilterable](/media/sqlgram/ShowTargetFilterable.png) +ShowLikeOrWhere ::= + "LIKE" SimpleExpr +| "WHERE" Expression +``` ## Examples Show all configurations: -{{< copyable "sql" >}} - ```sql SHOW CONFIG; ``` @@ -44,8 +43,6 @@ SHOW CONFIG; Show the configuration where the `type` is `tidb`: -{{< copyable "sql" >}} - ```sql SHOW CONFIG WHERE type = 'tidb' AND name = 'advertise-address'; ``` @@ -61,8 +58,6 @@ SHOW CONFIG WHERE type = 'tidb' AND name = 'advertise-address'; You can also use the `LIKE` clause to show the configuration where the `type` is `tidb`: -{{< copyable "sql" >}} - ```sql SHOW CONFIG LIKE 'tidb'; ```