欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  数据库

mysql中show常用语句_MySQL

程序员文章站 2022-06-16 17:11:26
...
bitsCN.com

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;

bitsCN.com
相关标签: mysql