Use this MySQL statement to display a list of tables that are open; that is to say, in the table cache. The list does not include any temporary tables.
hits past month: 9 ; last updated: may 4, 2009 - 2:34am ; parent: MySQL Table & Server Administration StatementsSHOW OPEN TABLES [FROM database] [LIKE 'pattern'|WHERE expression]
Use this MySQL statement to display a list of MySQL tables that are open; that is to say, 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.
Below is an example of this MySQL 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 | +----------+--------------------+--------+-------------+