From 7117474b26d059c7887dcd535a82c1fc28c4d121 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dani=C3=ABl=20van=20Eeden?= Date: Mon, 8 Apr 2024 10:52:50 +0200 Subject: [PATCH] ebnf show config --- 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 bca81011141d4..bb23df9b5f8c5 100644 --- a/sql-statements/sql-statement-show-config.md +++ b/sql-statements/sql-statement-show-config.md @@ -14,20 +14,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; ``` @@ -45,8 +44,6 @@ SHOW CONFIG; Show the configuration where the `type` is `tidb`: -{{< copyable "sql" >}} - ```sql SHOW CONFIG WHERE type = 'tidb' AND name = 'advertise-address'; ``` @@ -62,8 +59,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'; ```