Spec-Zone .ru
спецификации, руководства, описания, API

13.7.5.35. SHOW TABLE STATUS Syntax

SHOW TABLE STATUS [{FROM | IN} db_name]    [LIKE 'pattern' | WHERE expr]

SHOW TABLE STATUS works likes SHOW TABLES, but provides a lot of information about each non-TEMPORARY table. You can also get this list using the mysqlshow --status db_name command. The LIKE clause, if present, indicates which table names to match. The WHERE clause can be given to select rows using more general conditions, as discussed in Section 19.31, "Extensions to SHOW Statements".

This statement also displays information about views.

SHOW TABLE STATUS output has the following columns:

For MEMORY tables, the Data_length, Max_data_length, and Index_length values approximate the actual amount of allocated memory. The allocation algorithm reserves memory in large amounts to reduce the number of allocation operations.

For views, all the fields displayed by SHOW TABLE STATUS are NULL except that Name indicates the view name and Comment says view.