• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
uniqueness constraint on an a foreign key
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

uniqueness constraint on an a foreign key


  • Subject: uniqueness constraint on an a foreign key
  • From: Florijan Stamenkovic <email@hidden>
  • Date: Fri, 19 Sep 2008 13:00:50 -0400

Hi all,

I have a relationship A <->> B. B carries the FK for A, not allowed to be null.

I'd like to enforce that a single A can relate to only one B so I'm thinking of putting a uniqueness constraint on the FK. As far as I can see that will give me what I want without causing any trouble. Can anyone think of a reason against doing this, or is there a better practice to address this?

Thanks,
F
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: uniqueness constraint on an a foreign key
      • From: Chuck Hill <email@hidden>
  • Prev by Date: building dynamic queries and reports
  • Next by Date: Re: building dynamic queries and reports
  • Previous by thread: Re: building dynamic queries and reports
  • Next by thread: Re: uniqueness constraint on an a foreign key
  • Index(es):
    • Date
    • Thread