How can I check the existing FOREIGN KEY?
Suppose I have two tables: state_list and country_list. In the state_list table, we have three columns: stateID, statename, and countryID. On the other side, I have two columns in the country_list table: countryID and countryname. To check if the countryID column in the state_list table is a foreign key referencing the countryID primary key column…