MySQL Forums
Forum List  »  Newbie

Re: Can't insert new record because of foreign keys
Posted by: Neal Schilling
Date: April 25, 2005 07:50PM

Your best bet is to post the exact query that is being executed, values and all. Also, if you can, post the result from "Select * from a where id =" for both your foreign keys.

This is probably dumb, but I'd bet you have a NULL in there on accident and don't realize it.

Options: ReplyQuote


Subject
Written By
Posted
Re: Can't insert new record because of foreign keys
April 25, 2005 07:50PM


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.