m... ok.. però ora
alter table NOMETABELLA add constraint foreign key (nomecampo) references TABELLAPROPRIETARIA(nomecampo) on delete cascade
mi da l'errore
#1216 - Cannot add or update a child row: a foreign key constraint fails
...![]()
m... ok.. però ora
alter table NOMETABELLA add constraint foreign key (nomecampo) references TABELLAPROPRIETARIA(nomecampo) on delete cascade
mi da l'errore
#1216 - Cannot add or update a child row: a foreign key constraint fails
...![]()