I am using mysql
.
When I add a foreign key to a table it is done without any errors.
When the table structure is described i see MUL under the key field like I see the the PRI for the columns set as the primary key.
But when I try to violate the foreign key constraint by adding a value absent in the parent table in the child table it is correctly inserted without any errors.With my little knowledge in SQL
this is against the rules of the foreign key.
Any Ideas why this is happening or how I can fix it?