Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ebnf show table status #17065

Merged
merged 1 commit into from
Apr 15, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
19 changes: 8 additions & 11 deletions sql-statements/sql-statement-show-table-status.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,14 @@ This statement shows various statistics about tables in TiDB. If the statistics

## Synopsis

**ShowTableStatusStmt:**
```ebnf+diagram
ShowTableStatusStmt ::=
"SHOW" "TABLE" "STATUS" ("FROM" Identifier | "IN" Identifier )? ShowLikeOrWhere?

![ShowTableStatusStmt](/media/sqlgram/ShowTableStatusStmt.png)

**FromOrIn:**

![FromOrIn](/media/sqlgram/FromOrIn.png)

**StatusTableName:**

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

## Examples

Expand Down Expand Up @@ -54,7 +51,7 @@ Max_data_length: 0
Comment:
1 row in set (0.00 sec)

mysql> analyze table t1;
mysql> ANALYZE TABLE t1;
Query OK, 0 rows affected (0.12 sec)

mysql> SHOW TABLE STATUS LIKE 't1'\G
Expand Down