sqlserver添加主键

sqlServer中给表添加主键的sql:

alter table market_media_medical_history alter column pk_id bigint not null;
alter table market_media_medical_history add constraint PK_market_media_medical_history primary key(pk_id);
原文地址:https://www.cnblogs.com/super-chao/p/6226822.html