Home > Database > Mysql Tutorial > body text

What is the third-level schema of the database?

王林
Release: 2023-01-04 09:36:38
Original
26814 people have browsed it

The three-level schema of the database is the external schema, the conceptual schema and the internal schema. The user level corresponds to the external schema, the conceptual level corresponds to the conceptual schema, and the physical level corresponds to the internal schema, allowing users at different levels to form different views of the database.

What is the third-level schema of the database?

The operating environment of this tutorial: Windows 7 system, Dell G3 computer.

The three-level schema of the database refers to the external schema, conceptual schema and internal schema.

(Video tutorial recommendation: mysql video tutorial)

People have designed a rigorous architecture for the database. The standard structure recognized in the database field is the three-level schema structure. It includes external schema, conceptual schema, and internal schema, effectively organizes and manages data, and improves the logical independence and physical independence of the database.

The user level corresponds to the external schema, the conceptual level corresponds to the conceptual schema, and the physical level corresponds to the internal schema, allowing users at different levels to form different views of the database. The so-called view refers to the scope, angle and method of observing, understanding and understanding data. It is the reflection of the database in the "eyes" of the user. Obviously, the database "seen" by users at different levels (levels) is different.

External mode

External mode is also called submode or user mode, corresponding to the user level. It is a data view of the database seen by one or several users, and is a logical representation of data related to a certain application. The foreign schema is a subset derived from the schema and contains that portion of the data in the schema that is allowed to be used by a specific user. Users can describe and define data records corresponding to users (external schemas) through external schema description languages, and they can also use data manipulation language (Data Manipulation Language, DML) to operate on these data records. The external schema reflects the user's view of the database system.

Conceptual Pattern

Conceptual pattern is also called pattern or logical pattern, corresponding to the concept level. It is a global logical structure constructed by the database designer based on a unified point of view, integrating the data of all users. It is an overall description of the logical structure and characteristics of all data in the database, and is a common data view (global view) for all users. It is described and defined by the Data Description Language (DDL) provided by the database management system. Conceptual schema reflects the overall view of the database system.

Internal mode

Internal mode is also called storage mode, which corresponds to the physical level. It is the internal representation or underlying description of all data in the database, and is the lowest level logical description of the database. It describes the storage method and physical structure of the data on the storage medium, and corresponds to the database actually stored on the external storage medium. Internal patterns are described and defined by internal pattern description languages. The internal schema reflects the storage view of the database system.

In a database system, there is only one database. Therefore, as the internal schema that defines and describes the database storage structure and the schema that describes the logical structure of the database, it is also unique, but it is built on the database system. The applications are very extensive and diverse, so the corresponding external model is not unique, nor can it be unique.

Related recommendations: mysql tutorial

The above is the detailed content of What is the third-level schema of the database?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template