mysql数据库执行sql报错,求大神看看哪块错误?
createtableusers(idint(11)notnullprimarykeyauto_increment,--用户IDemailvarchar(128)uniq...
create table users(
id int(11) not null primary key auto_increment, --用户ID
email varchar (128) unique not null, --邮箱
name varchar (128) not null, --真实姓名
pwd varchar (128) not null, --密码(md5加密)
)
[Err] 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 '--用户ID
email varchar (128) unique not null, --邮箱
name varchar ' at line 2 展开
id int(11) not null primary key auto_increment, --用户ID
email varchar (128) unique not null, --邮箱
name varchar (128) not null, --真实姓名
pwd varchar (128) not null, --密码(md5加密)
)
[Err] 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 '--用户ID
email varchar (128) unique not null, --邮箱
name varchar ' at line 2 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询