Alternative to “master” and “slave” in entity relationship?

后端 未结 9 1794
遥遥无期
遥遥无期 2021-02-07 11:51

Example: I have two tables in my database called classA and classB, and one table called classA_classB. The last one just defi

9条回答
  •  鱼传尺愫
    2021-02-07 12:25

    How about student_id and friend_id? There's no rule that says your foreign keys need to have the same column names as the primary key.

提交回复
热议问题