SQL建表语句,有主外键

SQL建表语句,有主外键

create table t_tablename
(
id int idname primary key identity(1,1),
name varchar(20) not null
studentId int foreign key (**id)

或备好森者:仿亩袜神atler table score
add constraint FK_Sno foreign key(S_no) references student(S_no)
add constraint FK_Cno foreign key(C_no) references course(C_no)
)
← 上一篇: 下一篇: →