Jump to content

how to create bridge table,


sheraz

Recommended Posts

i am talking about many to many relationship dude. i have to create a 3rd table to reference the 2 parent tables, you can say that it will be a foreign key  >:(

Well, don't use terms that are made up like "bridge table" because obviously it doesn't mean anything to us. I'm sorry we are not psychic. We do try to help, but if we don't understand something, we ask. You probably should be more grateful to people who are spending their free time (without pay) to help you. Don't be mad at us for your bad terminology.

Link to comment
Share on other sites

Chill... it was a joke. Really.. google for 'bridge table' and you won't find anything about a databases until fifth page.

 

Now. What is your problem with creating such a table? There's nothing more to it, than to creating any other table.

 

table A

-------------------

A_id, someData

1 , foo

2, bar

...

 

table B

-------------------

B_id, someOtherData

1 , spam

2, eggs

...

 

table A_to_B

-------------------

A_id, B_id

1 , 2

2, 1

1, 1

...

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.