问题
What is the best way to design a table for a m:n relation between two entities??
回答1:
Three tables. One defining the first entity, one defining the second, and a third representing the relationship between them.
- Table 1 (first entity): T1Id, T1Name
- Table 2 (second entity): T2Id, T2Name
- Table 3 (relationship): T1Id, T2Id
来源:https://stackoverflow.com/questions/29400091/best-way-to-design-a-table-with-mn-relation