复制代码 代码如下:
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'
-- 将语句粘出来,执行;
时间: 2024-10-26 06:29:56
复制代码 代码如下:
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'
-- 将语句粘出来,执行;