多对多relation?# Database - 数据库
m*e
1 楼
I want to know what is the best method to implement a many-to-many
ralation in database.
For example, if I am writing a database application about 棋谱, I will
have a table called 'players' to store the players' ID and name. I will
have another table called 'games' which stored the real 棋谱. Because
a player can play many games and a game must have two players, this is
a 2-to-many ralation.
I think it is very inconvenient to use a intermediate table to implement
such relation. But if I use only 2 t
ralation in database.
For example, if I am writing a database application about 棋谱, I will
have a table called 'players' to store the players' ID and name. I will
have another table called 'games' which stored the real 棋谱. Because
a player can play many games and a game must have two players, this is
a 2-to-many ralation.
I think it is very inconvenient to use a intermediate table to implement
such relation. But if I use only 2 t