MYSQL修改所有表的存储引擎格式语句_MySQL
程序员文章站
2022-06-16 08:39:32
...
bitsCN.com
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
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
上一篇: php学习 数组课件第1/2页