嗨,我是mysql的新手,也尝试过其他的一些解决这个问题的建议,但是没有运气!我试图在表、应用程序和客户之间创建一个外键,但是当我运行我的程序时,会得到错误"cannot add or update a child row a foreign key constraint failsmysql“。customertable:customerfname varchar(100)我试图设置一个外</
在我粘贴的mysql代码中,无法添加第二个外键,但出现错误(1215无法添加外键约束)。问题出在哪里?create table movies id int primary key();
add constraint movies_id_FK
foreign key (id) references casti