• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to make relations inside between mysql database tables  RSS feed

 
Hemant Agarwal
Ranch Hand
Posts: 138
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How to make relations inside between mysql database tables.
 
Annie Smith
Ranch Hand
Posts: 172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Hemant Agarwal:
How to make relations inside between mysql database tables.


Your description is confusing. What exactly do you want to do?

I think you should refer here
 
Hemant Agarwal
Ranch Hand
Posts: 138
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to relate one table to another with foreign keys
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
  • Make sure you are using a version of MySQL that supports Foreign Keys (amazingly, this is only a recent feature)
  • Add a foreign key constraint as per the documentation.


  • [ December 20, 2005: Message edited by: Paul Sturrock ]
     
    Don't get me started about those stupid light bulbs.
    • Post Reply Bookmark Topic Watch Topic
    • New Topic
    Boost this thread!