MySQL ALTER TABLE 语句可以更改表的存储引擎,如下 -
mysql> ALTER TABLE Student ENGINE = 'InnoDB';
Query OK, 0 rows affected (0.90 sec)
Records: 0 Duplicates: 0 Warnings: 0
登录后复制
现在借助以下语句,我们可以检查存储引擎是否已更改
mysql> SELECT ENGINE FROM information_schema.TABLES
-> WHERE TABLE_SCHEMA = 'tutorial'
-> AND TABLE_NAME = 'Student';
+--------+
| ENGINE |
+--------+
| InnoDB |
+--------+
1 row in set (0.01 sec)
登录后复制
以上就是如何更改MySQL表的存储引擎?的详细内容,更多请关注每日运维网(www.mryunwei.com)其它相关文章!