Results 1 to 3 of 3

Thread: foreign key how to ?

  1. #1
    Join Date
    Jan 2004
    Location
    France
    Posts
    43

    foreign key how to ?

    how to create a foreign key with MySQL frony or MySQl center ?

    I find nowhere a tool like access , normally you've just to browse in another table to choose the foreign key

    is it possible to do it ?

    thank you

  2. #2
    Join Date
    Dec 2002
    Location
    Cape Town, South Africa
    Posts
    75
    I'm not familiar with those tools being a CLI junkie myself, but remember that the default MyISAM table type doesn't enforce foreign key constraints. You can add the syntax though ! Or you can use InnoDb tables, which do enforce referential integrity:

    See the MySQL Manual - foreign keys

  3. #3
    Join Date
    Jan 2004
    Location
    France
    Posts
    43
    thank you for the link

    I have tried the scripts with foreign keys , but you are never shure reading the table that you have a foreign key or not

    strange that you cannot directly drag and drop a column to create in visual mode a foreign key

    thank you

Posting Permissions

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