从“显示表"中选择数据. MySQL查询

从“显示表

问题描述:

在MySQL中是否可以从show tables中选择?

Is it possible to select from show tables in MySQL?

SELECT * FROM (SHOW TABLES) AS `my_tables`

虽然上述方法不起作用(至少在5.0.51a上有效),但仍遵循这些原则.

Something along these lines, though the above does not work (on 5.0.51a, at least).

我认为您想要SELECT * FROM INFORMATION_SCHEMA.TABLES

请参见 http://dev.mysql.com/doc /refman/5.0/en/tables-table.html