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

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

WBOY
Release: 2016-06-01 13:31:05
Original
1145 people have browsed it

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'  
Copy after login

 

  

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

bitsCN.com
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template