The SHOW LOGICAL TABLES syntax is used to query logical tables in the specified database.
ShowLogicalTables ::=
'SHOW' 'FULL'? 'LOGICAL' 'TABLES' ('FROM' databaseName)? showLike?
databaseName ::=
identifier
showLike ::=
'LIKE' likePattern
likePattern ::=
string
databaseName is not specified, the default is the currently used DATABASE; if DATABASE is not used, it will prompt No database selected.FULL returns the logical table type.schema_name.| Column | Description |
|---|---|
| table_name | Logical table name |
| table_type | Logical table type, returned only when FULL is specified |
| schema_name | Schema name, returned only when schema metadata exists |
SHOW LOGICAL TABLES;
SHOW FULL LOGICAL TABLES FROM sharding_db;
SHOW LOGICAL TABLES LIKE 't_order%';
SHOW, FULL, LOGICAL, TABLES, FROM, LIKE
