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.

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

...

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.