【发布时间】:2011-05-28 20:06:39
【问题描述】:
有什么比show tables 更详细的查看表格属性的命令?特别是,我需要知道在我继承的数据库中使用了哪些存储引擎。
【问题讨论】:
标签: mysql schema storage-engines
有什么比show tables 更详细的查看表格属性的命令?特别是,我需要知道在我继承的数据库中使用了哪些存储引擎。
【问题讨论】:
标签: mysql schema storage-engines
您可以直接查询information_schema 表。
SELECT `table_name`, `engine`
FROM `information_schema`.`tables`
WHERE `table_schema` = 'your_db'
ORDER BY `table_name` ASC
【讨论】:
show table status like '<tablename>'
show create table <tablename>
describe <tablename>
show indexes from <tablename>
【讨论】: