“Relation” versus “relationship” in RDBMS/SQL?

前端 未结 3 1617
日久生厌
日久生厌 2021-02-10 18:32

Coming from question “Relation” versus “relationship”

What are definitions of \"relation\" vs. \"relationship\" in RDBMS (or database theory)?

Update:
I

3条回答
  •  后悔当初
    2021-02-10 18:47

    A RELATION is a subset of the cartesian product of a set of domains (http://mathworld.wolfram.com/Relation.html). In everyday terms a relation (or more specifically a relation variable) is the data structure that most people refer to as a table (although tables in SQL do not necessarily qualify as relations).

    Relations are the basis of the relational database model.

    Relationships are something different. A relationship is a semantic "association among things".

提交回复
热议问题