帮忙看看什么地方错了 老纠结了
DROP DATABASE IF EXISTS `ScoreManage`; CREATE DATABASE `ScoreManage`DEFAULT CHARACTER SET utf8;
USE `ScoreManage`;
create table course(
cid int(11) not null,
cname varchar(40) not null,
coursehours int(3) not null,
primary keyPK_course(cid)
)ENGINE=InnoDB DEFAULT CHARSET=utf8;
create table student(
sid int(11) not null,
sname varchar(40) not null,
password varchar(40) not null,
primary keyPK_student (sid)
)ENGINE=InnoDB DEFAULT CHARSET=utf8;
create table score(
cid int not null,
sid int not null,
score int,
foreign key(sid) references student(sid),
foreign key(cid) references course (cid),
primary keyPK_score(cid,sid)
)ENGINE=InnoDB DEFAULT CHARSET=utf8;
CREATE TABLE admin (
admin_name VARCHAR(40) NOT NULL ,
admin_password VARCHAR(40) NOT NULL ,
PRIMARY KEY admin(admin_name)
)ENGINE = InnoDBDEFAULT CHARSET=utf8;