Results 1 to 2 of 2
  1. #1
    Join Date
    Sep 2004

    Unanswered: Two foreign keys ?

    Hi there,

    I'm trying to make a few tables in SQL (First time user). The tables have been derived from a logical model based around my assignment...

    I'm having problem getting two foreign keys in one table in the SQL. I keep getting the duplicate foreign key error...

    I'm not sure where i'm going wrong.....

    there’s a pic of my tables.... There are 4 tables, blog, blogger, blog_entry, and comment.. Blog is only table without a FK.

    have a look & thanks for any and all help....

    Last edited by Spencer_k; 12-20-04 at 13:12.

  2. #2
    Join Date
    Jun 2003
    Provided Answers: 1
    Each constraint has to have a unique name. You can name them "Blog_Entry_Foreign_Key1" and "Blog_Entry_Foreign_Key2", or you can come up with something more descriptive.
    If it's not practically useful, then it's practically useless.

    blindman "sqlblindman"

Posting Permissions

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