Difference between one-to-many and many-to-one relationship

后端 未结 11 516
心在旅途
心在旅途 2020-12-12 10:52

What is the real difference between one-to-many and many-to-one relationship? It is only reversed, kind of?

I can\'t find any \'good-and-easy-to-understand\' tutoria

11条回答
  •  心在旅途
    2020-12-12 11:47

    • ---One to Many--- A Parents can has two or more children.
    • ---Many to one--- Those 3 children can have a single Parents.

      Both are similar. This can be used belongs to the need. If you wanna find children for a particular parents, then u can go with One-To-Many. or else, wanna find parents for a twins, you may go with Many-To-One. Likewise....,

提交回复
热议问题