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,因此去掉這個屬性不會有影響。