A very simple question:
If I have a table A with PRIMARY KEY K,
and table B which has a column C defined as a FOREIGN KEY F referencing table A.K,
then, I would expect, C can only take a value from those already existing in table A column K.
So, let's assume, for simplicity's sake, table A has only 1 column K which is integer, and row are: 1, 3, 6, 7.
Would it be logical to assume that the column C of the table B cannot have a value of 2, because no such value exists in A.K?
For some reason, in my database no such rule seems to be enforced.
Do you know why?
Thanks.
ZA
_________________________________________________________________
Stop worrying about overloading your inbox - get MSN Hotmail Extra Storage! http://join.msn.click-url.com/go/onm00200362ave/direct/01/
-- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe: http://lists.mysql.com/[EMAIL PROTECTED]