SQLSERVER常用操作

alter table t_users add constraint PK_UID primary key(userId)  //设置主键

alter table t_users alter column UserID int not null  //设置非空

原文地址:https://www.cnblogs.com/xdpxyxy/p/3027117.html