create table user_t
(
userID int identity(1,1) not null,
userName varchar(20),
userPassword varchar(20),
createData datetime NULL ,
DeptCode int not null,
ISVALID char(1) not null constraint DF_Isvalid DEFAULT('1'),--default为默认约束
CONSTRAINT PK_userid primary key CLUSTERED(userID,userName) --单列主键、复合主键
CONSTRAINT FK_DeptCode FOREIGN KEY(DeptCode)
)
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货