如何更改 MySQL 表的存储引擎?
MySQL ALTER TABLE 语句可以更改表的存储引擎,如下所示 -
mysql> ALTER TABLE Student ENGINE = 'InnoDB';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 表的存储引擎? 的全部内容, 来源链接: utcz.com/z/358775.html