时间:2021-07-01 10:21:17 帮助过:26人阅读
SELECT CONCAT( ‘ALTER TABLE ‘, TABLE_NAME, ‘ ENGINE=InnoDB;‘ )
FROM information_schema.tables
WHERE table_schema = ‘lct-agent-test‘
and ENGINE!=‘InnoDB‘
LIMIT 0 , 10000;
lct-agent-test:为数据库名称
将查询结果复制出来再次执行即可
批量修改mysql数据库引擎
标签:结果 select ODB format limit nbsp from lte mysql