Home > Database > Mysql Tutorial > When creating a MySQL table, how do I specify the storage engine of my choice instead of using the default storage engine InnoDB?

When creating a MySQL table, how do I specify the storage engine of my choice instead of using the default storage engine InnoDB?

WBOY
Release: 2023-09-06 13:29:02
forward
1046 people have browsed it

When creating a MySQL table, how do I specify the storage engine of my choice instead of using the default storage engine InnoDB?

When creating a MySQL table, you can specify the storage engine as follows -

mysql> CREATE TABLE Student(id INTEGER PRIMARY KEY, Name VARCHAR(15))
-> ENGINE = 'MyISAM';
Query OK, 0 rows affected (0.28 sec)
Copy after login

ENGINE keyword specifies the storage engine to be used for this specific table.

The above is the detailed content of When creating a MySQL table, how do I specify the storage engine of my choice instead of using the default storage engine InnoDB?. For more information, please follow other related articles on the PHP Chinese website!

source:tutorialspoint.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template