📜  网络和关系数据模型之间的区别

📅  最后修改于: 2021-08-27 06:50:31             🧑  作者: Mango

1.网络数据模型:
它是分层数据模型的高级版本。为了组织数据,它使用有向图而不是树结构。这个孩子可以有一个以上的父母。它使用两个数据结构的概念,即记录和集合。

在上图中,项目是具有两个子节点的根节点,即项目1和项目2。项目1有3个孩子,而项目2有2个孩子。共有5个孩子,即A部门,B部门和C部门,它们是与网络相关的孩子,因为我们说过这种模式可以有多个父母。因此,对于部门B和部门C有两个父母,即项目1和项目2。

2.关系数据模型:
关系数据模型是由EF Codd在1970年开发的。它们不是分层数据模型中的物理链接。以下是关系数据模型的属性:

  • 数据仅以表的形式表示。
  • 它仅处理数据,而不处理物理结构。
  • 它提供有关元数据的信息。
  • 在行和列的交集处,元组只有一个值。
  • 它提供了一种轻松处理查询的方法。

网络和关系数据模型之间的区别:

Network Data Model Relational Data Model
It organizes records to one another through links or pointers. It organizes records in form of table and relationship between tables are set using common fields.
It organizes records in form of directed graphs. It organizes records in form of tables.
In this relationship between various records is represented physically via linked list. In this relationship between various records is represented logically via tables.
There is lack of declarative querying facilities. It provides declarative query facility using SQL.
Complexity increases burden on programmer for database design as well as data manipulation. As physical level details are hidden from end users so this model is very simple to understand.
Retrieval algorithms are complex but symmetric. Retrieval algorithms are simple and symmetric.
There is partial data independence in this model. This model provides data independence.
VAX-DBMS, DMS-1100 of UNIVAC and SUPRADBMS’s use this model. It is mostly used in real world applications. Oracle, SQL.