Overclock.net banner

What is referential integrity

440 Views 7 Replies 4 Participants Last post by  98uk
Is it just making sure that the primary key field is the same in the Foriegn key field?
1 - 8 of 8 Posts
Quote:


Originally Posted by hurrp
View Post

Is it just making sure that the primary key field is the same in the Foriegn key field?

I just happened to fine this, so I'm curious: is this what you're looking for? http://en.wikipedia.org/wiki/Referential_integrity

If not, then I would guess that you're looking for somebody to answer this in their own words. Unfortunately, I don't know what Referential Integrity is even after reading the Wikipedia article.
See less See more
The explanation on the page of this image explains it best:
http://en.wikipedia.org/wiki/File:Re...ity_broken.PNG
Ive read it already but I still dont understand it ;/
Quote:

Originally Posted by hurrp View Post
Ive read it already but I still dont understand it ;/
I suspected that. So, I'm replying in order to bump this again in hopes that somebody can just explain it in their own words.
See less See more
Have you read the one on the PNG page? That explanation is much better.
yeah i read it, i kind of get it but i just dont understand it in the way its written on wikipedia
Where data in one table must match data in another table.

So, if you change say User_ID in a members table, it changes the User_ID in the Orders table.
1 - 8 of 8 Posts
This is an older thread, you may not receive a response, and could be reviving an old thread. Please consider creating a new thread.
Top