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表的存储引擎?的详细内容。更多信息请关注PHP中文网其他相关文章!