15.7.7.24 SHOW OPEN TABLES Statement (original) (raw)

15.7.7.24 SHOW OPEN TABLES Statement

SHOW OPEN TABLES
    [{FROM | IN} db_name]
    [LIKE 'pattern' | WHERE expr]

SHOW OPEN TABLES lists the non-TEMPORARY tables that are currently open in the table cache. See Section 10.4.3.1, “How MySQL Opens and Closes Tables”. TheFROM clause, if present, restricts the tables shown to those present in the dbname database. The LIKE clause, if present, indicates which table names to match. TheWHERE clause can be given to select rows using more general conditions, as discussed inSection 28.8, “Extensions to SHOW Statements”.

SHOW OPEN TABLES output has these columns:

If you have no privileges for a table, it does not show up in the output from SHOW OPEN TABLES.