创建主键
alter table wyf_test201006 add constraint PK_wyf_test201006_ID primary key CLUSTERED (ID)
创建check约束
alter table wyf_test201007 add constraint CK_ID_wyf_test201006 check(ID between 5001 and 10000)
创建默认值
alter table wyf_test201007 add constraint DF_Storage_M_Shelf_Default default(0) for ID
创建外键
alter table wyf_test201007 add constraint FK_Goods_Pr_GID_Storage_Go_GID foreign key(GID) references Storage_Goods(GID)
1