SHOW OPEN TABLES
SHOW OPEN TABLES [FROMdatabase] [LIKE 'pattern'|WHEREexpression]
Use this statement to display a list of tables that are
open, i.e., that are in the table cache. The list does not include any
temporary tables. The LIKE clause can be used to limit
the tables displayed by a naming pattern. Similarly, the
WHERE clause may be used to refine the results set. Here is an example of
this statement:
SHOW OPEN TABLES FROM college LIKE '%student%'; +----------+--------------------+--------+-------------+ | Database | Table | In_use | Name_locked | +----------+--------------------+--------+-------------+ | college | student_surveys | 0 | 0 | | college | students | 0 | 0 | | college | student_exams | 0 | 0 | | college | student_exams_past | 0 | 0 | +----------+--------------------+--------+-------------+