当前位置:网站首页>Introduction to database system (Fifth Edition) notes Chapter 1 Introduction
Introduction to database system (Fifth Edition) notes Chapter 1 Introduction
2022-06-12 13:51:00 【Doll noodles I】
1.1.1 Database 4 Basic concepts
1. data (Data) – The basic objects stored in the database
- Data and semantics are inseparable ( The same number in different contexts can have different meanings )
2. database (DataBase)
1. meaning
It's stored in a computer for a long time , organized 、 A collection of large amounts of data that can be shared
2. basic feature
- Data according to a certain Data model organization , Depiction and storage ;
- It can be shared by all kinds of users 、 Little redundancy 、 Easy to expand ;
- High data independence
3. Database management system (DataBase Management System)
A layer of data management software located between the user and the operating system
yes Basic software , One Large and complex software system
Scientifically Organization and storage data 、 Efficiently Get and maintain data ( effect )
2. function
- Data definition function ,(DDL)
- Data organization 、 Storage and management
- Data manipulation function (DML) -- Add or delete check change
- Database transaction management and operation management
- Establishment and maintenance of database
- Other features ( signal communication , Data exchange )
4. Database system (DataBase)
1. meaning
- It refers to the system composition of introducing a database into a computer system .
2. constitute
- database
- Database management system
- Applications
- Database administrator

1.1.2 Data management
Classify the data , organization , code , Storage , Retrieval and maintenance
characteristic
- Data structure
- High data sharing 、 Low redundancy and easy expansion
- High data independence
- High independence is guaranteed by the second impression function
- Data is managed and controlled by database management system
1.2 Data model
It's a simulation of the real world , Is the core and foundation of database system
classification
- conceptual model
- Logical model and physical model
Real world – abstract –> The information world – transformation –> Machine world ( Data model supported by database management system )
1.2.3 The components of the data model
- data structure : static characteristic
- Data manipulation : Dynamic characteristics
- Data integrity constraints : soul ( Use collocation semantics )
1.2.4 Common data models
- Structured model
- hierarchical model
- Mesh model
- relational model
- Object oriented data model
- Object relational data model
- Semi structured data model
1. hierarchical model ( Trees -1 Yes n)
Conditions to be met :
- Only one root node
- Except for the root, other nodes have only one parent node
characteristic
- You cannot insert a node without parents
- Deleting parents will delete the child node in turn
advantage / shortcoming
- The structure is clear / High query efficiency
- It is impossible to express the relationship (n Yes n), There is no way to clearly indicate that a node has multiple parent nodes
2. Mesh model ( chart -n Yes n)
Under the condition that the hierarchical model is satisfied , Satisfactions
- Allow more than one node to have no parents
- A node can have multiple parents
- The relationship is not unique , But you need to name each relationship
advantage / shortcoming
- Can be many to many , High storage efficiency
- Complicated structure , Not query friendly
3.* relational model
Conditions
- Every attribute is indivisible ( It is not allowed to have a table in the table ).– Satisfy the first paradigm
Integrity constraints
- Entity integrity
- Referential integrity
- User defined integrity
advantage / shortcoming
- Strictly based on mathematical concepts
- A single concept , It is also related to data retrieval and update results ( surface )
- The storage path is transparent to users , Higher data independence , Better security . It also simplifies the work of programmers and database development , But it also leads to low query efficiency ( You need to find your own path ).
1.3 The structure of the database system
1.3.1 Database system concept
- The pattern is relatively stable ( abstract class ), And the examples are relatively variable ( Entity class )
- Databases are typically Three level mode structure and two-level image function
1.3.2 Three level pattern structure of database system
- Pattern
- External mode
- Internal mode
1. Pattern
- Also known as logical mode
- The logical structure of all data , Is a common data view for all users
- A database has only one schema
2. External mode
- Also known as Subscheme Or user mode
- Description of logical structure and characteristics of local data
- A database can have multiple external schemas
- An application has only one external mode , But one external mode can be used by multiple applications ( One person looks at a window , But one window can show many people )
- It is a powerful measure to ensure database security
3. Internal mode
- Also known as storage mode
- Description of data physical structure and storage method
- A database has only one internal schema
1.3.3 Secondary image function and data independence
1. External mode / Pattern image
- A pattern can have multiple external patterns , But an external mode can only have and only have one external mode / Pattern image
- If the mode changes ---- Modify each external mode / Pattern impression ----> You can keep the outer mode unchanged –> Application does not need to be modified . This is logical independence
2. Pattern / Internal mode image
- The database has only one schema , And there is only one inner mode . So the pattern / Intrinsic mode image unique
- If the storage structure of the database changes ---- Modify mode / Internal mode image ----> Leave the pattern unchanged , From the outside / Application does not need to be modified , This is physical independence
repair : Overall diagram of mode

1.4 Composition of database system
1.4.3 Database administrator
- Determine the content and structure of the information in the database
- Storage structure and access policy
- Safety requirements and integrity constraints ( Secure storage )
- Monitor the use and operation of the database ( Backup , Prevent invasion )
- Database improvement and reorganization , restructure ( Performance monitoring )
边栏推荐
- Codeforces 1629 F1. Game on sum (easy version) - DP, game, thinking
- Briefly describe the difference between CGI and fastcgi
- Qualcomm platform development series (Protocol) QMI brief introduction and usage
- Codeforces 1634 F. Fibonacci additions - Fibonacci sequence addition, ideas
- Cmake basic tutorial - 02 b-hello-cmake
- Web3.0,「激发创造」的时代
- 1004: character triangle
- m1 pod install pod lint 失败解决方案
- 阿裏雲開發板HaaS510報送設備屬性
- Create a small root heap and judge the node relationship (also.C\u str() substr(),atoi(),string. Use of find())
猜你喜欢
![[MySQL advanced] index classification and index optimization scheme (V)](/img/8b/2284783d8b81ba2e8fa45a239107ba.png)
[MySQL advanced] index classification and index optimization scheme (V)

【mysql进阶】索引分类及索引优化方案(五)
![[semidrive source code analysis] [x9 chip startup process] 25 - Introduction to mailbox inter core communication mechanism (code analysis) rpmsg-ipcc RTOS & QNX](/img/90/98faa5856fbc55ff7fda4a3adb3650.png)
[semidrive source code analysis] [x9 chip startup process] 25 - Introduction to mailbox inter core communication mechanism (code analysis) rpmsg-ipcc RTOS & QNX

Codeforces 1637 D. yet another minimization problem - Mathematics, DP

A method of quickly creating test window

MySQL 查询 limit 1000,10 和 limit 10 速度一样快吗? 深度分页如何破解

Transmission and response of events and use cases

Web3.0, the era of "stimulating creativity"

Automatic Generation of Visual-Textual Presentation Layout

阿里云开发板HaaS510连接物联网平台--HaaS征文
随机推荐
Is MySQL query limit 1000,10 as fast as limit 10? How to crack deep paging
Mold and remainder
Top 10 tips for visual studio code on Google
When the byte jumps, the Chinese 996 is output in the United States
Alibaba Cloud Development Board haas510 submission Device Properties
Application of binary search -- finding the square root sqrt of a number
Introduction to color coding format
AVFoundation
go-zero 微服务实战系列(二、服务拆分)
static 和 extern 关键字详解
Implementation of Ackermann function with simulated recursion
Player screen orientation scheme
[wustctf2020] selfie score query -1
【mysql进阶】索引分类及索引优化方案(五)
AVFoundation
Now you must know the pointer
Briefly describe the difference between CGI and fastcgi
Real time software source code of COVID-19
Seeking magic square of order n with C language
Implementing singleton mode of database under QT multithreading