为了账号安全,请及时绑定邮箱和手机立即绑定

帮忙给看下哪里错了,

--用户表

DROP TABLE IF EXISTS imooc_user;

CREATE TABLE imooc_user(

id int unsigned auto_increment key,

userName varchar(20) not null unique,

password char(32) not null,

sex enum(男,女,保密) not null default 保密,

face varchar(50) not null,

regTime int unsigned not null

);

--相册表

DROP TABLE IF EXISTS imooc_album;

CREATE TABLE imooc_album(

id int unsigned auto_increment key,

pid int unsigned not null,

albumPath varchar(50) not null,

);

http://img1.sycdn.imooc.com//55baeefe00012dfc06770442.jpg

正在回答

3 回答

你在里面执行sql的时候,最好以 ;  作为结束符 

0 回复 有任何疑惑可以回复我~

中文问题吧,你创建表的时候用的是什么字符集?

0 回复 有任何疑惑可以回复我~

相册表最后 “albumPath varchar(50) not null,”看到没,多了一个逗号

0 回复 有任何疑惑可以回复我~
#1

逐梦凡 提问者

相册表的问题解决了,但用户表怎么解决呢?
2015-07-31 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消
手把手教你实现电商网站后台开发
  • 参与学习       117283    人
  • 解答问题       1999    个

手把手教你用PHP搭建电子商务平台,由浅入深教你搭建电商系统

进入课程

帮忙给看下哪里错了,

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信