当前位置:网站首页>Three paradigms of database
Three paradigms of database
2022-06-12 16:34:00 【-Implicit function-】
First normal form (1NF):
There can only be a primary key and a field with relative meaning , The database can no longer be split , It's atomic
Second normal form (2NF):
The primary and foreign key tables are separated ,
For example , Employees' words , All the information is about employees , Department's words , All the information is about the Department , When two tables are associated , Each table puts the information it represents , Do not store information in other tables , For example, I put the address of my department in the employee table , This is obviously unreasonable , The primary key table contains information about the primary key table , The foreign key table contains information about the foreign key table , This is the second paradigm , Most of us usually use the second paradigm
Third normal form (3NF):
Each key should be directly dependent on the primary key rather than indirectly ,
For example , Now there is a table called room number table , There is a table called room type table , Now I add a column , It's called the room price column , It is obviously unreasonable to put this price in the room number list , Because prices are differentiated by type , So it should be in the type table
【 Be careful 】 On the basis of the first paradigm, the second paradigm , The third paradigm is satisfied on the basis of the second paradigm , If one of them is not satisfied , It does not satisfy the following paradigm
边栏推荐
- Daily question -890 Find and replace mode
- The C programming language (version 2) notes / 8 UNIX system interface / 8.3 open, create, close, unlink
- use. Net upgrade assistant upgrades the net core 3.1 project to NET 6
- How to construct PostgreSQL error codes
- How to base on CCS_ V11 new tms320f28035 project
- 《安富莱嵌入式周报》第268期:2022.05.30--2022.06.05
- Probation period and overtime compensation -- knowledge before and after entering the factory labor law
- The C programming language (version 2) notes / 8 UNIX system interface / 8.7 instance (storage allocator)
- Why is your next computer a computer? Explore different remote operations
- 大规模实时分位数计算——Quantile Sketches 简史
猜你喜欢

Acwing 797 differential

acwing 800. Target and of array elements

Mongodb learning and sorting (basic command learning of users, databases, collections and documents)

HEMA is the best representative of future retail

程序员爆料:4年3次跳槽,薪资翻了3倍!网友:拳头硬了......

Leetcode 2194. Excel 表中某个范围内的单元格(可以,已解决)

MongoDB 学习整理(用户,数据库,集合,文档 的基础命令学习)

Gopher to rust hot eye grammar ranking

收藏 | 22个短视频学习Adobe Illustrator论文图形编辑和排版

【湖南大学】考研初试复试资料分享
随机推荐
<山东大学项目实训>渲染引擎系统(七)
AssertJ 的异常(Exception )断言
33-【go】Golang sync. Usage of waitgroup - ensure that the go process is completed before the main process exits
How to construct PostgreSQL error codes
generate pivot data 0
d的sha6转大整
并发包和AQS
JS monitors whether the user opens the screen focus
generate pivot data 2
Thread pool execution process
js监听用户是否打开屏幕焦点
h t fad fdads
Exception assertion of assertj
Leetcode 2190. 数组中紧跟 key 之后出现最频繁的数字(可以,一次过)
acwing 803. Interval merging
vim 从嫌弃到依赖(16)——宏
The C Programming Language(第 2 版) 笔记 / 8 UNIX 系统接口 / 8.4 随机访问(lseek)
Probation period and overtime compensation -- knowledge before and after entering the factory labor law
【BSP视频教程】BSP视频教程第17期:单片机bootloader专题,启动,跳转配置和调试下载的各种用法(2022-06-10)
About component value transfer