bitscn.com use `[dbname]`;select group_concat(concat( 'alter table ' ,table_name ,' engine=innodb; ') separator '' ) from information_schema.tables as t where table_schema = '[dbname]' and table_type = 'base table'
使用说明:
1. 将以上sql语句中的[dbname]替换成需要修改的数据库名称。
2. 执行sql,这个时候还没有修改,只是给了一个查询结果。
3. 将查询结果复制,去掉前后的引号,然后执行。
bitscn.com