mysql中的错误#1064 [英] Error #1064 in mysql
本文介绍了mysql中的错误#1064的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我不断收到此错误:
1064-您的SQL语法有错误;检查手册 对应于您的MySQL服务器版本以使用正确的语法 在第11行的"TYPE = MyISAM AUTO_INCREMENT = 58"附近
1064 - 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=MyISAM AUTO_INCREMENT=58' at line 11
这是我的查询:
CREATE TABLE `tbl_cart` (
`ct_id` int( 10 ) unsigned NOT NULL AUTO_INCREMENT ,
`pd_id` int( 10 ) unsigned NOT NULL default '0',
`ct_qty` mediumint( 8 ) unsigned NOT NULL default '1',
`ct_session_id` char( 32 ) NOT NULL default '',
`ct_date` datetime NOT NULL default '0000-00-00 00:00:00',
PRIMARY KEY ( `ct_id` ) ,
KEY `pd_id` ( `pd_id` ) ,
KEY `ct_session_id` ( `ct_session_id` )
) TYPE = MYISAM AUTO_INCREMENT =58;
帮助我,问题出在哪里...
Help Me What the problem is ...
推荐答案
关键字TYPE
从MySQL 5.1开始被删除,请使用
The keyword TYPE
is removed since MySQL 5.1, use
) ENGINE = MYISAM AUTO_INCREMENT =58;
相反.
这篇关于mysql中的错误#1064的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文