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

后端 未结 11 527
心在旅途
心在旅途 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:37

    From this page about Database Terminology

    Most relations between tables are one-to-many.

    Example:

    • One area can be the habitat of many readers.
    • One reader can have many subscriptions.
    • One newspaper can have many subscriptions.

    A Many to One relation is the same as one-to-many, but from a different viewpoint.

    • Many readers live in one area.
    • Many subscriptions can be of one and the same reader.
    • Many subscriptions are for one and the same newspaper.

提交回复
热议问题