Many to Many Relation Design - Intersection Table Design

后端 未结 11 1460
野的像风
野的像风 2020-12-07 19:20

I\'m wondering what a better design is for the intersection table for a many-to-many relationship.

The two approaches I am considering are:

CREATE TA         


        
11条回答
  •  温柔的废话
    2020-12-07 20:03

    It's a topic of some debate. I prefer the first form because I consider it better to be able to look up the mapping row by a single value, and like to enforce a perhaps-foolish consistency of having a single-column primary key available in every table without fail. Others think that having that column is a silly waste of space.

    We meet for a few rounds of bare-knuckle boxing at a bar in New Jersey every couple of months.

提交回复
热议问题