According to the organization form of data, data models can be divided into hierarchical models, network models and relational models.
The hierarchical model uses a tree structure to describe the relationship between entities; the network model uses a graph structure to describe the relationship between entities; the relational model uses a two-dimensional table to describe the relationship between entities.
(Recommended learning: mysql tutorial)
Let’s talk about it separately:
Hierarchical model
Organize the data into a one-to-many relationship structure, and use a tree structure to represent entities and the relationships between entities.
Network model
Use connection instructions or pointers to determine the network connection relationship between data, which is a many-to-many type of data organization.
Relationship model
Organize data in the form of record groups or data tables to facilitate storage and transformation using the relationships between various entities and attributes, regardless of The layer also has no pointers and is a very effective data organization method for establishing the relationship between spatial data and attribute data.
The above is the detailed content of What are the three types of database data models?. For more information, please follow other related articles on the PHP Chinese website!