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

mysql5.5.23 TYPE=InnoDB语法错误_MySQL

WBOY
Release: 2016-06-01 13:31:31
Original
972 people have browsed it

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' 
Copy after login

 

 

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

 

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

 

bitsCN.com
Related labels:
source:php.cn
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