Specifications:
C:/Usersalready exists (SQL: create table users (id int unsigned not null aut
o_increment primary key, name varchar(255) not null, email varchar(255) not null, password
我有两个表,table1是具有列ID的父表,table2具有列IDFromTable1 (而不是实际名称)。当我将IDFromTable1上的FK放到table1中的ID时,我得到错误Foreign key constraint is incorrectly formed error。如果table1记录被删除,我想删除表2记录。谢谢你的帮助 ADD CONSTRAINT `FK1` ON UPDATE