增加外键
ALTER TABLE 本表名 ADD constraint fkname FOREIGN KEY (本表的列) REFERENCES 关联表名(关联表列)
取消外键
alter table 本表名
drop constraint FK_T_BACKUP_REFERENCE_T_CURREN 外键名称
alter table 表 nocheck CONSTRAINT all
增加外键
ALTER TABLE 本表名 ADD constraint fkname FOREIGN KEY (本表的列) REFERENCES 关联表名(关联表列)
取消外键
alter table 本表名
drop constraint FK_T_BACKUP_REFERENCE_T_CURREN 外键名称
alter table 表 nocheck CONSTRAINT all