내가 가진 말 :PK가 FK 인 테이블을 생성하기위한 SQL은 무엇입니까?
create table Post(
PostID int not null constraint PK_Post primary key clustered,
Title nvarchar(200) not null
) on [primary]
create table PostDetail(
PostID int not null constraint PK_PostDetail primary key clustered,
Text nvarchar(max) null
) on [primary]
가 어떻게 PostDetail.PostID FK가 Post.PostID를 참조해야합니까? 사실 후
방법이 유용 할 것? –