--删除外键

ALTER TABLE t_base_role_module

DROP CONSTRAINT fk_t_base_role_module_t_base_defined_url;

--增加外键

ALTER TABLE t_base_role_module

ADD CONSTRAINT fk_t_base_role_module_t_base_defined_url

FOREIGN KEY (module_id)

REFERENCES t_base_defined_url (module_id)

ON DELETE CASCADE;

--不检查约束
alter table 表 nocheck constraint fk_name

--检查约束
alter table 表 check constraint fk_name

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-19
  • 2021-11-12
  • 2021-09-03
猜你喜欢
  • 2021-07-14
  • 2021-06-29
  • 2021-12-22
  • 2021-06-14
  • 2021-12-22
  • 2022-12-23
相关资源
相似解决方案