Creating a join table to manage this relationship would be the right thing to do.
创建一个连接表来管理这个关系会非常适合。
Indeed, the relationship between Book and Author goes beyond the simple join table.
确实如此,Book和Author之间的关系已经超出了简单连接表的范围。
The join table allows you to persist books with a single author as well as books with multiple authors.
连接表允许将具有一个作者的图书和具有多个作者的图书持久化。
Rather than adding a foreign key to either the Book or Author table, GORM adds book_id and author_id to the BookAuthor join table.
GORM向BookAuthor 连接表添加 book_id和 author_id,而不是向Book或Author 表添加一个外键。
In a database, three tables represent m: m relationships: the two tables you'd expect (Book and Author), and a third join table (BookAuthor).
在数据库中,用三个表表示m: m关系:前两个表您已经知道了(Book和Author),第三个是一个连接表(BookAuthor)。
If you want to use a one-to-many relationship you should use a join table instead.
如果你想用一个一对多的关系,你应该使用一个连接表来代替。
The flight table is the join table, representing the complex relationship among the other tables. Listing 8 shows the fields in the flight table.
flight是连接表,表示其他表之间的复杂关系。
You would probably need to set up a many-to-many relationship with a join table, requiring several joins to determine the actors for a particular movie.
您可能需要使用一个联接表设置一个多对多关系,这需要几个联接来确定某个电影的演员。
If I were to use a relational table structure to design this relationship, I'd need at least three tables: the third being a join table linking a many-to-many relationship.
如果我要使用一个关系表结构来设计这个关系,至少需要3个表:第3表将是链接一个“多对多”关系的联接表。
Change the Join Table separator to an underline (" _ ") and change the name of the database schema.
将Join Table分隔符更改为一个下划线(“_”)并更改数据库模式(schema)的名称。
This component displays a tree view of values computed in the same way that the Lotus Notes join - table component does.
该组件在树形视图中以和LotusNotesjoin-table组件相同的方式显示经过计算的值。
This component displays a tree view of values computed in the same way that the Lotus Notes join - table component does.
该组件在树形视图中以和LotusNotesjoin-table组件相同的方式显示经过计算的值。
应用推荐