Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
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