create table #tb(
id int,
name varchar(10),
constraint ID_PK primary key(id) --添加主键约束
)
alter table #tb drop constraint ID_PK --删除
go
drop table #tb
create table #tb(
id int,
name varchar(10),
constraint ID_PK primary key(id) --添加主键约束
)
alter table #tb drop constraint ID_PK --删除
go
drop table #tb