MySQL Forums
Forum List  »  Newbie

Re: error message
Posted by: Phillip Ward
Date: July 28, 2020 05:36AM

Does this query return any rows?

select * 
from province 
where Country not in 
( select Country 
  from country
)

If it does then you have countries in your province table that don't appear in your country table and the foreign key is objecting to this - because that's its job!

Regards, Phill W.

Options: ReplyQuote


Subject
Written By
Posted
July 26, 2020 10:23AM
July 27, 2020 08:52AM
July 28, 2020 02:11AM
Re: error message
July 28, 2020 05:36AM
July 28, 2020 10:31AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.