Home >Database >Mysql Tutorial >MYSQL:将所有表的存储引擎格式进行修改_MySQL

MYSQL:将所有表的存储引擎格式进行修改_MySQL

WBOY
WBOYOriginal
2016-06-01 13:31:051147browse

bitsCN.com

MYSQL:将所有表的存储引擎格式进行修改

 

[sql] SELECT GROUP_CONCAT(CONCAT( 'ALTER TABLE ' ,TABLE_NAME ,' ENGINE=ARCHIVE; ')  SEPARATOR '' )  FROM information_schema.TABLES AS t   WHERE TABLE_SCHEMA = 'userinfo' AND TABLE_TYPE = 'BASE TABLE'  

 

  

-- 将语句粘出来,执行;

bitsCN.com
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn