在开发中,根据需要解除两个表之间的关联,需要删除外键约束
Alter table 表名 drop foreign key 外建名;

删除student表中外键约束

MySQL删除外键约束

可以看出,表student中的外键已经删除

相关文章:

  • 2021-06-14
  • 2021-07-14
  • 2021-06-29
  • 2021-08-16
  • 2022-12-23
  • 2021-06-25
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-07-07
  • 2021-07-20
  • 2021-12-19
  • 2022-12-23
  • 2021-08-13
相关资源
相似解决方案