Foreign keys in MySQL and referential integrity of Database

W

Weasley

A foreign key in a My Sql database is a field (or fields) of a table
that points to a primary key of an other table. Such keys are defined
in a database to ensure that only fields that supposed to appear in a
database may be permitted.

What is their requirement ? Why are they useful ?

For enhancing the referential integrity of your database, you need
foreign key. Read more on how they are defined and created. Learn
through some examples.

http://sulabhjain.wordpress.com/2010/02/01/foreign-keys-and-referential-integrity-in-database/
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,816
Latest member
SapanaCarpetStudio

Latest Threads

Top