其他表的创建略去了,最后的finish表创建失败,谁可以告诉我错哪了?
create table patron(patron_id int,
userName varchar(20) not null unique,
password varchar(20) not null,
sex char(2),
mobile int,
email varchar(40),
address varchar(100),
remark varchar(255),
constraint C1 primary key(patron_id));
create table answer(patron_id int,
problem_id int,
times int,
isTrue int,
time int,
constraint C5 primary key(patron_id,problem_id,times),
constraint C6 foreign key(patron_id) references patron(patron_id),
constraint C7 foreign key(problem_id) references problem(problem_id));
create table finish(patron_id int,
times int,
allTime int,
isOver int,
constraint C8 primary key(patron_id,times),
constraint C9 foreign key(patron_id) references patron(patron_id),
constraint C10 foreign key(times) references answer(times));