生成修改的语句

SELECT CONCAT('ALTER TABLE ',table_name,' ENGINE=InnoDB;') FROM information_schema.tables

WHERE table_schema='ambari' AND ENGINE='MyISAM';

05-11 11:23