I got this table in MySQL Database:
countrycountry_provincecountry_province_municipalitycountry_province_municipality_barangay
Here's the the Foreign Keys for each table:
country.objidlink tocountry_province.countryidcountry_province.objidlink tocountry_province_municipality.provinceidcountry_province_municipality.objidlink tocountry_province_municipality_barangay.municipalityid
So, the 4 tables are connected by each other by its objid.
QUESTION: I was about to delete the links of all the records of 4 tables using the country.objid only. How to do it?
The script should look something like this:
delete country, country_province, country_province_municipality, country_province_municipality_barangay where country.objid = 'country0001'