--此处的pid,id就是联合主键 if object_id('pt2') is not null drop table pt2 go create table pt2( pid int not null, id int not null ) go alter table pt2 add constraint [PK_pt2] primary key(pid,id) on [PRIMARY] go
34,593
社区成员
254,589
社区内容
加载中
试试用AI创作助手写篇文章吧