1、
Create table ParentChild
(
ParentID int not null,
ChildID int not null
)
ALTER TABLE ParentChild ADD PRIMARY KEY(ParentID , ChildID)
2、
Create table ParentChild
(
ParentID int NOT NULL ,
ChildID int NOT NULL ,
CONSTRAINT PK_ParentChild PRIMARY KEY CLUSTERED(ParentID,ChildID)
)
3、
Create table ParentChild
(
ParentID int not null,
ChildID int not null PRIMARY KEY(ParentID , ChildID)
)
Create table ParentChild
(
ParentID int not null,
ChildID int not null
)
ALTER TABLE ParentChild ADD PRIMARY KEY(ParentID , ChildID)
2、
Create table ParentChild
(
ParentID int NOT NULL ,
ChildID int NOT NULL ,
CONSTRAINT PK_ParentChild PRIMARY KEY CLUSTERED(ParentID,ChildID)
)
3、
Create table ParentChild
(
ParentID int not null,
ChildID int not null PRIMARY KEY(ParentID , ChildID)
)