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);

 

posted @ 2016-12-27 17:59  super超人  阅读(17253)  评论(0编辑  收藏  举报