Answer the question
In order to leave comments, you need to log in
How to create a relationship between two tables in the database when one field refers to several fields?
Two tables:
Answer the question
In order to leave comments, you need to log in
If one view can be associated with several types, and each type can be associated with only one view, then the one-to-many relationship is implemented by the view_id field in the type table.
If one view can be associated with several types, and one type with several types, then this is many-to-many and is built on an intermediate link table (view_id, type_id).
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question