比起
show tables
,有没有更详细的命令可以查看表属性?特别是,我需要知道我继承的数据库正在使用哪些存储引擎。show tables
,有没有更详细的命令可以查看表属性?特别是,我需要知道我继承的数据库正在使用哪些存储引擎。(你可以)查询 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>