SHOW TABLES
SHOW [FULL|OPEN] TABLES [FROMdatabase] [LIKE 'pattern'| WHEREexpression]
This statement displays a list of tables and views (as of
version 5.0.1 of MySQL). To distinguish between tables and views, add
the FULL keyword. In the results, an extra column called
Table_type will be displayed. A value of
BASE TABLE indicates a table, and VIEW indicates a view.
The tables shown will not include temporary tables and will be from
the current database by default. To list tables from another database,
add the FROM clause along with the name of the
database. You can reduce the list of tables to those with a name
meeting a given naming pattern with either the LIKE
or the WHERE clause. For a list of all tables for all databases that are
currently being used by queries, add the OPEN flag
instead:
SHOW TABLES FROM workrequests LIKE 'work%';
This statement will list all of the tables and views with names
that begins with the word “work” for the database
workrequests. By default, only tables for which the
user has privileges will be listed.
From the command line, the utility mysqlshow with the
--keys option can be used to show the tables
contained in a database:
mysqlshow --user=user--passworddatabase