Jump to content

Foreign Key


NathanLedet

Recommended Posts

They're useful for maintaing relational integrity. For example you can set up ON DELETE relation, so that when a parent record from table A is deleted all it's child record from table B are deleted automagically, or quite diffrently, when there are any child record in table B, then deleting parent record from table A always fails.

Link to comment
https://forums.phpfreaks.com/topic/122871-foreign-key/#findComment-634587
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.