語法:
alter table 表名 with nocheck
add constraint 約束名 約束類型 具體的約束說明
對表中現有的數據不做檢查,
只對添加約束后再錄入的數據進行檢查。
例子:
alter table Employee with nocheck
add constraint CK_EployeeId check(len(EmployeeId)=18)
語法:
alter table 表名 with nocheck
add constraint 約束名 約束類型 具體的約束說明
對表中現有的數據不做檢查,
只對添加約束后再錄入的數據進行檢查。
例子:
alter table Employee with nocheck
add constraint CK_EployeeId check(len(EmployeeId)=18)
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。