You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/doc/30-reference/30-sql/40-show/show-table-status.md
+36-28Lines changed: 36 additions & 28 deletions
Original file line number
Diff line number
Diff line change
@@ -2,11 +2,13 @@
2
2
title: SHOW TABLE STATUS
3
3
---
4
4
5
-
Shows the list of table status in the currently selected database.
5
+
Shows the status of the tables in a database. The status information includes various physical sizes and timestamps about a table, see [Examples](#examples) for details.
6
+
7
+
The command returns status information of all the tables in the current database by default. Use a FROM | IN clause to specify another database rather than the current one. You can also filter tables with a LIKE or WHERE clause.
6
8
7
9
## Syntax
8
10
9
-
```
11
+
```sql
10
12
SHOW TABLE STATUS
11
13
[{FROM | IN} db_name]
12
14
[LIKE'pattern' | WHERE expr]
@@ -16,17 +18,19 @@ SHOW TABLE STATUS
16
18
17
19
```sql
18
20
CREATETABLEt(id INT);
19
-
SHOW TABLE STATUS\G
21
+
22
+
-- Show status of all tables in the current database
0 commit comments