多字段相同值约束

来源:互联网 发布:绕过网络白名单限制 编辑:程序博客网 时间:2024/05/21 07:07
alter table Activity_numblist add constraint uq_id unique(A_Numblist, BatchID)
Go

---多字段相同值约束


INSERT INTO [EDBCDB].[dbo].[Activity_numblist]
           ([A_Numblist]
           ,[BatchID]
           ,[EmplID]
           ,[Status]
           ,[CreatTime])
     VALUES
           ( '132434331','1231231','123','0','2015-2-3')
GO



0 0
原创粉丝点击