Skip to content

Commit

Permalink
ebnf show privileges (#17027) (#17150)
Browse files Browse the repository at this point in the history
  • Loading branch information
ti-chi-bot committed Apr 11, 2024
1 parent be983f3 commit 8d3fca9
Showing 1 changed file with 21 additions and 4 deletions.
25 changes: 21 additions & 4 deletions sql-statements/sql-statement-show-privileges.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
+---------------------------------+---------------------------------------+-------------------------------------------------------+
Expand Down Expand Up @@ -79,5 +83,18 @@ The `SHOW PRIVILEGES` statement in TiDB is fully compatible with MySQL. If you f

## See also

<CustomContent platform="tidb">

* [SHOW GRANTS](/sql-statements/sql-statement-show-grants.md)
* [Privilege Management](/privilege-management.md)
* [`GRANT <privileges>`](/sql-statements/sql-statement-grant-privileges.md)

</CustomContent>

<CustomContent platform="tidb-cloud">

* [SHOW GRANTS](/sql-statements/sql-statement-show-grants.md)
* [Privilege Management](https://docs.pingcap.com/tidb/stable/privilege-management)
* [`GRANT <privileges>`](/sql-statements/sql-statement-grant-privileges.md)

</CustomContent>

0 comments on commit 8d3fca9

Please sign in to comment.