时间:2021-07-01 10:21:17 帮助过:2人阅读
具体原因貌似是因为不支持alter外键的操作。
ALTER TABLE `t_terminal` DROP FOREIGN KEY `FK704405E7F06A14EF`; ALTER TABLE `t_terminal` ADD CONSTRAINT `FK704405E7F06A14EF` FOREIGN KEY (`userId`) REFERENCES `t_user` (`id`) ON DELETE CASCADE ON UPDATE RESTRICT;
MySql 修改外键 支持级联删除
标签: