Muthukumaran Posted April 25, 2007 Share Posted April 25, 2007 I have two tables in which first table contains a primary value which can't be NULL. In second table a field refers that primary value in the first table (i.e foreign key). But this value sometimes requires to be NULL. What is the solution to overcome this constraint? Please anyone answer to this... Quote Link to comment https://forums.phpfreaks.com/topic/48574-foreign-key-in-mysql/ Share on other sites More sharing options...
effigy Posted April 25, 2007 Share Posted April 25, 2007 Please do not double post. I don't see what the problem is--foreign keys can be NULL if you let them via your table definition. Quote Link to comment https://forums.phpfreaks.com/topic/48574-foreign-key-in-mysql/#findComment-238144 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.