Skip to content

Commit

Permalink
ebnf show databases (#17031) (#17151)
Browse files Browse the repository at this point in the history
  • Loading branch information
ti-chi-bot authored Apr 11, 2024
1 parent f2cc618 commit 847221b
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions sql-statements/sql-statement-show-databases.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,14 @@ This statement shows a list of databases that the current user has privileges to

## Synopsis

**ShowDatabasesStmt:**
```ebnf+diagram
ShowDatabasesStmt ::=
"SHOW" "DATABASES" ShowLikeOrWhere?
![ShowDatabasesStmt](/media/sqlgram/ShowDatabasesStmt.png)

**ShowLikeOrWhereOpt:**

![ShowLikeOrWhereOpt](/media/sqlgram/ShowLikeOrWhereOpt.png)
ShowLikeOrWhere ::=
"LIKE" SimpleExpr
| "WHERE" Expression
```

## Examples

Expand Down Expand Up @@ -58,3 +59,4 @@ The `SHOW DATABASES` statement in TiDB is fully compatible with MySQL. If you fi
* [SHOW SCHEMAS](/sql-statements/sql-statement-show-schemas.md)
* [DROP DATABASE](/sql-statements/sql-statement-drop-database.md)
* [CREATE DATABASE](/sql-statements/sql-statement-create-database.md)
* [`INFORMATION_SCHEMA.SCHEMATA`](/information-schema/information-schema-schemata.md)

0 comments on commit 847221b

Please sign in to comment.