sqlserver 修改主键为自增

alter table tt drop constraint PK__BS_CAS_U__3213E83F612AD0EB ;

alter table tt drop column id ;

alter table tt add id int PRIMARY key identity(1,1)

你可能感兴趣的:(sql,数据库)