SHOW SINGLE TABLE

    Syntax

    • When databaseName is not specified, the default is the currently used DATABASE. If DATABASE is not used, No database selected will be prompted.

    Return value description

    • Query specified single table for specified database.
    1. SHOW SINGLE TABLE t_user FROM test1;
    1. mysql> SHOW SINGLE TABLE t_user FROM test1;
    2. | table_name | resource_name |
    3. +------------+---------------+
    4. | t_user | ds_0 |
    5. 1 row in set (0.00 sec)
    • Query specified single table for current database.
    1. mysql> SHOW SINGLE TABLE t_user;
    2. +------------+---------------+
    3. | table_name | resource_name |
    4. +------------+---------------+
    5. | t_user | ds_0 |
    6. 1 row in set (0.00 sec)
    • Query single tables for specified database.
    1. SHOW SINGLE TABLES FROM test1;
    • Query single tables for current database.
    1. SHOW SINGLE TABLES;
    1. +------------+---------------+
    2. | table_name | resource_name |
    3. +------------+---------------+
    4. | t_user | ds_0 |
    5. +------------+---------------+

    Reserved word

    SHOW, SINGLE, TABLE, TABLES,