Home  >  Article  >  Database  >  mysql5.5.23 TYPE=InnoDB语法错误_MySQL

mysql5.5.23 TYPE=InnoDB语法错误_MySQL

WBOY
WBOYOriginal
2016-06-01 13:31:31958browse

bitsCN.com

mysql5.5.23 TYPE=InnoDB语法错误

 

CREATE TABLE IF NOT EXISTS `ad_aXXXX_test_delete` (  `payment` double(15,4) default '0.0000',  `createdatetime` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',  PRIMARY KEY  (`aspid`,`date`)) TYPE=InnoDB;You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'type=InnoDB' 

 

 

在MYSQL5.5及以后版本中type=InnoDB 由ENGINE=InnoDB  代替。

 

由于5.5默认的存储引擎就是InnoDB,因此去掉这个属性不会有影响。

 

bitsCN.com
Statement:
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