当前位置: > #1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL serve...
题目
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL serve
--
-- Table structure for table `level`
--
CREATE TABLE level (
idx int(11) NOT NULL auto_increment,
name varchar(30) default NULL,
condition int(11) default NULL,
bCondition enum('y','n') NOT NULL default 'y',
price_cut float default '0',
point_cut float default '0',
trans_cut enum('y','n') NOT NULL default 'n',
bUse enum('y','n') NOT NULL default 'y',
part enum('M','D','B','E') NOT NULL default 'M',
level tinyint(4) NOT NULL default '0',
writeday datetime NOT NULL default '0000-00-00 00:00:00',
margin_cut tinyint(4) default NULL,
login_msg varchar(255) default NULL,
PRIMARY KEY (idx),
KEY bUse (bUse)
) TYPE=MyISAM COMMENT='�����';

提问时间:2020-07-27

答案
在您的SQL中第四行 :condition int(11) default NULL,
这个里的列明为系统关键字,不能使用.换个别的就可以了,
比如:conditiona int(11) default NULL,
希望能给您提供点信息.
举一反三
我想写一篇关于奥巴马的演讲的文章,写哪一篇好呢?为什么好
奥巴马演讲不用看稿子.为什么中国领导演讲要看?
想找英语初三上学期的首字母填空练习……
英语翻译
1,人们染上烟瘾,最终因吸烟使自己丧命.
版权所有 CopyRight © 2012-2019 超级试练试题库 All Rights Reserved.