当前位置:网站首页>SQL learning notes (01) - basic knowledge of database
SQL learning notes (01) - basic knowledge of database
2022-07-01 09:26:00 【Yuxuan godlike】
The contents of the catalog
One 、 What is database technology
- Scientific organization and storage of data , Efficient data acquisition and processing
- SQL Language structured query language ( Additions and deletions )
Two 、 The basic architecture of the database
data (data)
Definition : A symbolic representation of an objective thing , Such as graphical symbols , Numbers , Letters and so on . Data is the basic object of database storage .database database (DB)
Definition : Long term storage in a computer , Organized , Sharable data set .Database management system (DBMS)
Database Define functions :DDL Language ( Database definition language ), Three statements are provided :create( establish ),alter( modify ),drop ( Delete ), The object of the operation is the basic architecture in the database ---- surface .
Database Operation function :DML Language ( Database operation language ), Realize the operation of adding, deleting, modifying and querying the data stored in the database ( insert , delete , update , select )
Database Protection function : Protecting data integrity and Security
Database Maintenance function : Database table structure and data maintenance function
- Database system (DBS)
Database system (DBS)= database (DB)+ Database management system (DBMS)+ Application system + Database administrator (DBA)+ user
Three stages of database system :
| Mesh database | Hierarchical database | relational database | |
|---|---|---|---|
| How data is organized | Mesh model | Tree model | relational model |
| framework | Graphic structure | A tree structure | surface |
3、 ... and 、 Three paradigms of database
1. First normal form
If the relationship R All properties of are simple properties : Each attribute cannot be further divided , said R Satisfy the first paradigm , In fact, there are no duplicate columns . surface 1 Not satisfied with the first paradigm .
surface 2 To meet the requirements of the first paradigm , But the data redundancy is too large , The second paradigm is needed .

2. Second normal form
If the relationship R First satisfy the first paradigm , Non primary key fields depend entirely on the primary key , said R Satisfying the second paradigm .
example :
There is an express order form , If the same person sends multiple couriers at the same time , In this case, the sender's name is duplicated , It will cause data redundancy , At this time, we should split it up . As shown in the table 3
The order sheet :
Name and number table :
surface 4 And table 5 For the two split tables , Meet the requirements of the second paradigm .
3. Third normal form
If the relationship R Satisfying the second paradigm , There is no dependency between non key fields , That is, any field cannot be derived from other fields , It requires that the fields are not redundant , said R Meet the third paradigm .
A basic relational data must satisfy the first normal form , A complete relational database should meet the third paradigm .
Four 、SQL The classification of sentences
1.DQL Data query language : select sentence
2.DML Data operation language : insert update delete sentence
3.DDL Data definition language : create alter drop sentence
4.DCL Data control language : to grant authorization grant Right to receive revoke
5.TCL Transaction control language : commit Submit rollback Rollback or undo savepoint Set the savepoint
边栏推荐
- FAQ | FAQ for building applications for large screen devices
- js重写自己的函数
- 微信小程序 webview 禁止页面滚动,同时又不影响业务内overflow的滚动的实现方式
- JS scope chain and closure
- An overview of the design of royalties and service fees of mainstream NFT market platforms
- tensorrt yolov5_ trt. Py comments
- Principles of Microcomputer - Introduction
- 2022.02.15_ Daily question leetcode six hundred and ninety
- Leetcode daily question brushing record --540 A single element in an ordered array
- 【pytorch】nn. Crossentropyloss() and nn NLLLoss()
猜你喜欢

nacos服务配置和持久化配置
![2.3 [pytorch] data preprocessing torchvision datasets. ImageFolder](/img/19/cce8d8a7cdcb1021166c46adf803c1.png)
2.3 [pytorch] data preprocessing torchvision datasets. ImageFolder

2.4 激活函数

Implementation and application of queue

Understanding and implementation of AVL tree

Installation and use of NoSQL database

FAQ | FAQ for building applications for large screen devices
![[pytorch] softmax function](/img/97/b8ae22e8496a77e665d716cb0e9ee3.png)
[pytorch] softmax function

2.3 【pytorch】数据预处理 torchvision.datasets.ImageFolder

Design and manufacture of simple digital display electronic scale
随机推荐
【pytorch】transforms. Normalize((0.5, 0.5, 0.5), (0.5, 0.5, 0.5))
[ESP nanny level tutorial] crazy completion chapter - Case: chemical environment system detection based on Alibaba cloud and Arduino, supporting nail robot alarm
delete和delete[]引发的问题
微信小程序 webview 禁止页面滚动,同时又不影响业务内overflow的滚动的实现方式
Closure implementation iterator effect
ES6 const essence and completely immutable implementation (object.free)
[ESP nanny level tutorial preview] crazy node JS server - Case: esp8266 + DS18B20 temperature sensor +nodejs local service + MySQL database
Problems caused by delete and delete[]
韦东山板子编译内核问题解决
tensorrt yolov5_ trt. Py comments
Principle and application of single chip microcomputer timer, serial communication and interrupt system
js函数arguments对象
[interview brush 101] linked list
Ranking list of domestic databases in February, 2022: oceanbase regained the "three consecutive increases", and gaussdb is expected to achieve the largest increase this month
Principles of Microcomputer - Introduction
js原型继承仅可继承实例而非构造器
【ESP 保姆级教程】疯狂毕设篇 —— 案例:基于阿里云和Arduino的化学环境系统检测,支持钉钉机器人告警
How to effectively align team cognition
【ESP 保姆级教程 预告】疯狂Node.js服务器篇 ——案例:ESP8266 + DS18B20温度传感器 +NodeJs本地服务+ MySQL数据库
类加载