Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2

Thread: foreign keys

  1. #1
    New Coder
    Join Date
    Jul 2006
    Posts
    22
    Thanks
    0
    Thanked 0 Times in 0 Posts

    foreign keys

    hey,

    can you have a foreign key in more than one table.
    Ie. could I put a MechanicID (which is the key field of the Mechanictbl) into tblJob and tblOrders??

    irish87.

  • #2
    Regular Coder
    Join Date
    Jun 2005
    Posts
    804
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Sure. You can put foreign keys whereever you'd like. That doesn't mean it's a good idea, though -- that depends on the specifics of your data.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •