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中文網其他相關文章!