1064 - You have an error in your SQL syntax; check the manual that correspon这个问题解决办法

1064 - You have an error in your SQL syntax; check the manual that correspon这个问题解决办法_第1张图片

这个问题其实不难哦.....


错误原因::

没有写字符串长度      


解决方案:在varchar后面加一个字符创长度就可以啦

例如:create table three(
id int primary key auto_increment,
name varchar(10) not null,
p_id int

)ENGINE=INNODB default charset=utf8;


这里的name varchar(10) not null,这行的varchar括号里边的加一个长度。

你可能感兴趣的:(1064 - You have an error in your SQL syntax; check the manual that correspon这个问题解决办法)