| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> comp.databases.theory -> Re: foreign vs primary key
mikeg wrote:
> "Dan Star" <danstar_at_engman-taylor.com> wrote in message
> news:3ba90b40$0$12824$272ea4a1_at_news.execpc.com...
> > mikeg wrote:
> > > I have read a number of texts regarding the terms foreign and primary
> keys
> > > but I just can't get a feel for their uses.
> > > any help appreciated,
> >
> > Think of Parent-Child. The foreign key is a key in a table that is the
> > primary key in another table.
<snip>
>
> Thanks, I can see that but what is the significance? Why is it necessary to
> identify the foreign key? How are they used? Aren't primary keys enough?
Normally: yes, up till yesterday I never bothered (mysql doesn't even have support for it)... now I'm going to have an application *guess* what columns contain foreign keys 'cause the production database (SQL Server) I need to transfer doesn't have explicit foreign keys defined (even worse: columns don't even have consequent names :(
Ewald Received on Thu Sep 20 2001 - 02:39:44 CDT
![]() |
![]() |