linux mysql----You have an error in your SQL syntax; check the manual that corresponds to your MySQL

Mysql 语句毛病

(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 'nulluser_id varchar(20) not null,foreign key(user_id) references user_surface(us' at line 1")

用mysql构造一个表 发现一直报错  

刚开始以为  自己什么语句写错了什么的      找了好半天

最后发现  要么少了个    ,   逗号

要么多了个    )   括号

长个记性   以后出错  先去找符号问题
 

猜你喜欢

转载自blog.csdn.net/bc521bc/article/details/84330114
今日推荐