Ok I tried it and I could reference city to province.
But when I try to reference suburb to city I get the following error:
Cannot add or update a child row: a foreign key constraint fails (`pns_prop/#sql-990_9`, CONSTRAINT `#sql-990_9_ibfk_1` FOREIGN KEY (`idcity_suburb`) REFERENCES `city`...
Can someone please help me to setup foreign keys between these 3 tables.
I would like to setup the FK as follow:
id_prov -->(FK)idprov_city and id_city -->(FK)idcity_suburb
The problem I'm experiencing is when I feed my database using dependent dropdown menus the value used to control the...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.