幫忙給看下哪里錯了,
--用戶表
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,
);
2015-07-31
你在里面執行sql的時候,最好以 ; ?作為結束符?
2015-07-31
中文問題吧,你創建表的時候用的是什么字符集?
2015-07-31
相冊表最后?“albumPath varchar(50) not null,”看到沒,多了一個逗號