From 091e2e067a0c34a1b191cee7c2c0dce9f4068f49 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dani=C3=ABl=20van=20Eeden?= Date: Mon, 8 Apr 2024 10:57:25 +0200 Subject: [PATCH 1/3] ebnf show privileges --- sql-statements/sql-statement-show-privileges.md | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/sql-statements/sql-statement-show-privileges.md b/sql-statements/sql-statement-show-privileges.md index 445731cee06ba..ef27c99de30cd 100644 --- a/sql-statements/sql-statement-show-privileges.md +++ b/sql-statements/sql-statement-show-privileges.md @@ -9,14 +9,18 @@ This statement shows a list of assignable privileges in TiDB. It is a static lis ## Synopsis -**ShowStmt:** - -![ShowStmt](/media/sqlgram/ShowStmt.png) +```ebnf+diagram +ShowPrivilegesStmt ::= + "SHOW" "PRIVILEGES" +``` ## Examples ```sql -mysql> show privileges; +SHOW PRIVILEGES; +``` + +``` +---------------------------------+---------------------------------------+-------------------------------------------------------+ | Privilege | Context | Comment | +---------------------------------+---------------------------------------+-------------------------------------------------------+ From 8dec4e4f8684b217fbb7bfc8ed67375eae753531 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dani=C3=ABl=20van=20Eeden?= Date: Mon, 8 Apr 2024 11:10:22 +0200 Subject: [PATCH 2/3] Add link to privilege management --- sql-statements/sql-statement-show-privileges.md | 1 + 1 file changed, 1 insertion(+) diff --git a/sql-statements/sql-statement-show-privileges.md b/sql-statements/sql-statement-show-privileges.md index ef27c99de30cd..2284045c58fcc 100644 --- a/sql-statements/sql-statement-show-privileges.md +++ b/sql-statements/sql-statement-show-privileges.md @@ -84,4 +84,5 @@ The `SHOW PRIVILEGES` statement in TiDB is fully compatible with MySQL. If you f ## See also * [SHOW GRANTS](/sql-statements/sql-statement-show-grants.md) +* [Privilege Management](/privilege-management.md) * [`GRANT `](/sql-statements/sql-statement-grant-privileges.md) From a12bde4c64ffb088dfed9daee510cd3c95830dc9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dani=C3=ABl=20van=20Eeden?= Date: Wed, 10 Apr 2024 12:02:10 +0200 Subject: [PATCH 3/3] Update sql-statements/sql-statement-show-privileges.md Co-authored-by: Aolin --- sql-statements/sql-statement-show-privileges.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/sql-statements/sql-statement-show-privileges.md b/sql-statements/sql-statement-show-privileges.md index 2284045c58fcc..7c024f2194384 100644 --- a/sql-statements/sql-statement-show-privileges.md +++ b/sql-statements/sql-statement-show-privileges.md @@ -83,6 +83,18 @@ The `SHOW PRIVILEGES` statement in TiDB is fully compatible with MySQL. If you f ## See also + + * [SHOW GRANTS](/sql-statements/sql-statement-show-grants.md) * [Privilege Management](/privilege-management.md) * [`GRANT `](/sql-statements/sql-statement-grant-privileges.md) + + + + + +* [SHOW GRANTS](/sql-statements/sql-statement-show-grants.md) +* [Privilege Management](https://docs.pingcap.com/tidb/stable/privilege-management) +* [`GRANT `](/sql-statements/sql-statement-grant-privileges.md) + +