mysql中show常用语句

2014-11-24 14:01:17 · 作者: · 浏览: 0
mysql中show常用语句
查看引擎:
show engines\G
看某一个表的存储引擎,就是看该表的创建过程
show create table [tb_name]\G
show table status like '[tb_name]'\G;
select table_name,engine from tables where table_name='[tb_name]' and table_schema='[db_name]'\G
--修改存储引擎:
alter table city engine=MyISAM;