C表
为现有表Test4创建unique约束 增加unique约束后 删除unique约束后
给现有放数据库表Teacher创建CHECK约束
use testbase2 go alter table Teacher with CHECK add constraint CHECK_AGE1 check(AGE>=14 AND AGE<=52) go给现有放数据库表S删除CHECK约束
use testbase2 go alter table Teacher drop constraint CHECK_AGE1 go级联
use testbase2 go alter table TC with nocheck add constraint FK_T_TC FOREIGN KEY(TNO) REFERENCES Teacher(TNO) on delete cascade go