From 091186e94f73cec7a05727171d06f7e57d6ed748 Mon Sep 17 00:00:00 2001 From: tangenta Date: Tue, 16 Jun 2020 12:29:15 +0800 Subject: [PATCH] Update sql diagrams of show statements --- .../sql-statement-show-create-table.md | 4 ++-- sql-statements/sql-statement-show-create-user.md | 4 ++-- sql-statements/sql-statement-show-databases.md | 8 ++++---- sql-statements/sql-statement-show-grants.md | 16 ++++++++++++++-- 4 files changed, 22 insertions(+), 10 deletions(-) diff --git a/sql-statements/sql-statement-show-create-table.md b/sql-statements/sql-statement-show-create-table.md index a9c78f84a2134..a9b5cf0e238fa 100644 --- a/sql-statements/sql-statement-show-create-table.md +++ b/sql-statements/sql-statement-show-create-table.md @@ -11,9 +11,9 @@ This statement shows the exact statement to recreate an existing table using SQL ## Synopsis -**ShowStmt:** +**ShowCreateTableStmt:** -![ShowStmt](/media/sqlgram/ShowStmt.png) +![ShowCreateTableStmt](/media/sqlgram/ShowCreateTableStmt.png) **TableName:** diff --git a/sql-statements/sql-statement-show-create-user.md b/sql-statements/sql-statement-show-create-user.md index 888ae83de2b2e..e407cd35f91d3 100644 --- a/sql-statements/sql-statement-show-create-user.md +++ b/sql-statements/sql-statement-show-create-user.md @@ -11,9 +11,9 @@ This statement shows how to re-create a user using the `CREATE USER` syntax. ## Synopsis -**ShowStmt:** +**ShowCreateUserStmt:** -![ShowStmt](/media/sqlgram/ShowStmt.png) +![ShowCreateUserStmt](/media/sqlgram/ShowCreateUserStmt.png) **Username:** diff --git a/sql-statements/sql-statement-show-databases.md b/sql-statements/sql-statement-show-databases.md index a8766507a657a..7ce9f8e513b09 100644 --- a/sql-statements/sql-statement-show-databases.md +++ b/sql-statements/sql-statement-show-databases.md @@ -13,13 +13,13 @@ This statement shows a list of databases that the current user has privileges to ## Synopsis -**ShowStmt:** +**ShowDatabasesStmt:** -![ShowStmt](/media/sqlgram/ShowStmt.png) +![ShowDatabasesStmt](/media/sqlgram/ShowDatabasesStmt.png) -**ShowTargetFilterable:** +**ShowLikeOrWhereOpt:** -![ShowTargetFilterable](/media/sqlgram/ShowTargetFilterable.png) +![ShowLikeOrWhereOpt](/media/sqlgram/ShowLikeOrWhereOpt.png) ## Examples diff --git a/sql-statements/sql-statement-show-grants.md b/sql-statements/sql-statement-show-grants.md index e1b51145eff08..bc7a8e8574891 100644 --- a/sql-statements/sql-statement-show-grants.md +++ b/sql-statements/sql-statement-show-grants.md @@ -11,14 +11,26 @@ This statement shows a list of privileges associated with a user. As in MySQL, t ## Synopsis -**ShowStmt:** +**ShowGrantsStmt:** -![ShowStmt](/media/sqlgram/ShowStmt.png) +![ShowGrantsStmt](/media/sqlgram/ShowGrantsStmt.png) **Username:** ![Username](/media/sqlgram/Username.png) +**UsingRoles:** + +![UsingRoles](/media/sqlgram/UsingRoles.png) + +**RolenameList:** + +![RolenameList](/media/sqlgram/RolenameList.png) + +**Rolename:** + +![Rolename](/media/sqlgram/Rolename.png) + ## Examples ```sql