mysql foreign key ,使用 InnoDB engine。預設是 MYISAM
發表於 : 2014-08-20, 06:25
出至:http://dev.mysql.com/doc/refman/5.5/en/ ... tting.html
14.1. Setting the Storage Engine
When you create a new table, you can specify which storage engine to use by adding an ENGINE table option to the CREATE TABLE statement:
CREATE TABLE t (i INT) ENGINE = INNODB;
If you omit the ENGINE option, the default storage engine is used. The default engine is InnoDB as of MySQL 5.5.5 (MyISAM before 5.5.5). You can specify the default engine by using the –default-storage-engine server startup option, or by setting the default-storage-engine option in the my.cnf configuration file.
14.1. Setting the Storage Engine
When you create a new table, you can specify which storage engine to use by adding an ENGINE table option to the CREATE TABLE statement:
CREATE TABLE t (i INT) ENGINE = INNODB;
If you omit the ENGINE option, the default storage engine is used. The default engine is InnoDB as of MySQL 5.5.5 (MyISAM before 5.5.5). You can specify the default engine by using the –default-storage-engine server startup option, or by setting the default-storage-engine option in the my.cnf configuration file.