mysql教程

超轻量级php框架startmvc

MYSQL修改所有表的存储引擎格式语句

更新时间:2020-04-24 17:45:02 作者:startmvc
SELECTGROUP_CONCAT(CONCAT('ALTERTABLE',TABLE_NAME,'ENGINE=ARCHIVE;')SEPARATOR'')FROMinformation_schema.TABLESAStWHERETAB
 
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'

-- 将语句粘出来,执行;
MYSQL 所有表 存储引擎