Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

What are the data structures in the database?

Shulou Source: shulou.com Published: 2022-06-02 17:12:11 09月10日 Update

This article will explain in detail what the data structure in the database is, and the editor thinks it is very practical, so I share it for you as a reference. I hope you can get something after reading this article.

The data structure includes: 1, the logical structure of the data, reflecting the logical relationship between the data elements; 2, the physical structure of the data, the representation of the data structure in the computer; 3, the data storage structure, the commonly used storage structures are sequential storage, chain storage, index storage, hash storage and so on.

The data structure includes the logical structure, physical structure and storage structure of the data.

1. Logical structure of data

Refers to the data structure that reflects the logical relationship between data elements, in which the logical relationship refers to the before and after relationship between data elements, regardless of their storage location in the computer.

2. Physical structure of data

The physical structure of data is the representation of the data structure in the computer (also known as image), which includes the internal representation of data elements and the internal representation of relations. Because the specific implementation methods are sequence, link, index, hash and so on, a data structure can be expressed as one or more storage structures.

3. Data storage structure

The storage form of the logical structure of data in the computer storage space is called the physical structure of the data (also known as the storage structure). Generally speaking, the logical structure of a data structure can be expressed as a variety of storage structures, such as sequential storage, chain storage, index storage, hash storage and so on.

Extended data:

The content of data structure research is how to organize the data according to a certain logical structure, and choose the appropriate storage representation method to store the logically organized data into the memory of the computer.

The purpose of the research is to process the data more effectively and improve the efficiency of data operation. The operation of the data is defined on the logical structure of the data, but the specific implementation of the operation should be carried out on the storage structure. In general, there are the following common operations:

1. Search. Retrieval is to find nodes that meet certain conditions in the data structure. It is generally given the value of a field and find the node with the value of that field.

2. Insert. Add new nodes to the data structure halo.

3. Delete. Removes the specified node from the data structure.

4. Update. Changes the value of one or more fields of the specified node.

5. Sort. Rearrange the nodes in a specified order. Such as increasing or decreasing.

This is the end of the article on "what are the data structures in the database?". I hope the above content can be of some help to you, so that you can learn more knowledge. If you think the article is good, please share it for more people to see.

Tags: Data structure storage data structure logic physics nodes computers elements order operations between multiple fields commonly used articles indexes databases content that is Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Tech Info Huawei MariaDB Linux OPPO Reno