多对多:中间表(第三张),两个外键。两个一对多,两个关联字段联合在一起(联合主键),唯一标识一条数据
行级:最后一列,primary key(字段1,字段2)
create table t_stu(
sid int not null,
cid int not null,
score float null default 0,
primary key (sid,cid),
foreign key (sid) references t_student (s_no),
foreign key (cid) references t_course (id)
)
列级:s_no int not null primary key