Results 1 to 3 of 3

Thread: Problem with Foreign key?

  1. #1
    Join Date
    May 2005
    Location
    India
    Posts
    1

    Angry Problem with Foreign key?

    Hello Friends ,This is Mallik,new to Mysql and new to this forum.i have problem with foreign key .i create tables using reference,but when we enter data into table it is accepting without refering to the referencing table.What i have to do?pls help me.
    ur's
    Mallik.

  2. #2
    Join Date
    Apr 2005
    Location
    florida
    Posts
    89
    Because you created a (0,n)-relationship.
    You just need to make it (1,n) by making that reference column NOT NULL.


    Good luck!

  3. #3
    Join Date
    Dec 2002
    Location
    Cape Town, South Africa
    Posts
    75
    More details would help, but it's probably because the default MyISAM tables don't support foreign key constraints. Use an InnoDB table instead.

Posting Permissions

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