20.2. The INFORMATION_SCHEMA TABLES Table

MySQL 5.0

20.2. The INFORMATION_SCHEMA TABLES Table

The table provides information about tables in databases.

Name Name Remarks
 
...  
...  
   
MySQL extension
MySQL extension
MySQL extension
MySQL extension
MySQL extension
MySQL extension
MySQL extension
MySQL extension
MySQL extension
MySQL extension
MySQL extension
MySQL extension
MySQL extension
MySQL extension
MySQL extension
MySQL extension
MySQL extension

Notes:

  • and are a single field in a display, for example .

  • should be or . If table is temporary, then = . (There are no temporary views, so this is not ambiguous.)

  • The column is if the table is in the database. For tables, the row count is only a rough estimate used in SQL optimization.

  • We have nothing for the table's default character set. is close, because collation names begin with a character set name.

The following statements are equivalent:

SELECT table_name FROM INFORMATION_SCHEMA.TABLES
  [WHERE table_schema = '']
  [WHERE|AND table_name LIKE '']

SHOW TABLES
  [FROM ]
  [LIKE '']