MySQL Forums
Forum List  »  Newbie

Re: one column reference multiple values in another table
Posted by: Peter Brawley
Date: March 09, 2015 10:50AM

Presumably, each referenced language can also be spoken by multiple, the relationship you're trying to model is many:many. That's done with a bridge table ...

table tbl( tid PK, ..., lang, ... )
table languages( lid PK, name, ...)
table tbl_languages( tid, lid )

... where each tbl_languages row documents one instance of one speaker of one language.

Options: ReplyQuote


Subject
Written By
Posted
Re: one column reference multiple values in another table
March 09, 2015 10:50AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.