SHOW SINGLE TABLE
Syntax
- When
databaseName
is not specified, the default is the currently usedDATABASE
. IfDATABASE
is not used,No database selected
will be prompted.
Return value description
- Query specified single table for specified database.
SHOW SINGLE TABLE t_user FROM test1;
mysql> SHOW SINGLE TABLE t_user FROM test1;
| table_name | resource_name |
+------------+---------------+
| t_user | ds_0 |
1 row in set (0.00 sec)
- Query specified single table for current database.
mysql> SHOW SINGLE TABLE t_user;
+------------+---------------+
| table_name | resource_name |
+------------+---------------+
| t_user | ds_0 |
1 row in set (0.00 sec)
- Query single tables for specified database.
SHOW SINGLE TABLES FROM test1;
- Query single tables for current database.
SHOW SINGLE TABLES;
+------------+---------------+
| table_name | resource_name |
+------------+---------------+
| t_user | ds_0 |
+------------+---------------+
Reserved word
SHOW
, SINGLE
, TABLE
, TABLES
,