当前位置:网站首页>Basic knowledge of database design
Basic knowledge of database design
2022-07-03 09:23:00 【Great you don't know】
- Relationship Editor
1. Relationship Type
mysql Data table relationships :
First of all :1 Yes 1 The relationship between (1:1).
second :1 Relationship to many (1:n).
Third : many-to-many (m:n).
Identifying relationship ( Identify relationships ) and non-Identifying relationship( Unrecognized relationship ) ; The former is mandatory , Rely on the , The latter is optional , Independent
2. Existence
M/O(Mandatory or Optional): “Mandatory” Indicates that this query field is required ;“Optional” Indicates that this query field is optional .
3. Cardinality
One to many relationship , It is usually used Mandatory Of . such as , The relationship between birthplace and people . People must have a place of birth (not null).
among , Divide again 1 Yes 0..*(One to Zero or More), 1 Yes 1..*(One to One or More), 1 Yes 0..1(One to Zero or One),
1 Yes n(One to Exactly)
But in some cases optional, For example, the relationship between nationality and people . People can have no nationality ( It can be for null), But if you have nationality , You must choose from the list of nationalities , May have a nationality , You can also have multiple nationalities
Many to many relationship , use Non-Specific, What intermediate tables will be automatically generated when generating tables , Degrade into 2 Many to one relationship
边栏推荐
- [kotlin learning] classes, objects and interfaces - define class inheritance structure
- 2022-2-13 learning xiangniuke project - version control
- 浅谈企业信息化建设
- Spark structured stream writing Hudi practice
- [point cloud processing paper crazy reading classic version 9] - pointwise revolutionary neural networks
- Jenkins learning (I) -- Jenkins installation
- [point cloud processing paper crazy reading frontier version 11] - unsupervised point cloud pre training via occlusion completion
- Tag paste operator (#)
- Utilisation de hudi dans idea
- With low code prospect, jnpf is flexible and easy to use, and uses intelligence to define a new office mode
猜你喜欢

Jenkins learning (II) -- setting up Chinese

With low code prospect, jnpf is flexible and easy to use, and uses intelligence to define a new office mode

【点云处理之论文狂读前沿版8】—— Pointview-GCN: 3D Shape Classification With Multi-View Point Clouds

Move anaconda, pycharm and jupyter notebook to mobile hard disk

IDEA 中使用 Hudi

Jenkins learning (III) -- setting scheduled tasks

【点云处理之论文狂读前沿版13】—— GAPNet: Graph Attention based Point Neural Network for Exploiting Local Feature

We have a common name, XX Gong

LeetCode 324. Swing sort II

Hudi学习笔记(三) 核心概念剖析
随机推荐
LeetCode 438. Find all letter ectopic words in the string
[kotlin learning] classes, objects and interfaces - classes with non default construction methods or attributes, data classes and class delegates, object keywords
2022-2-13 learn the imitation Niuke project - Project debugging skills
What are the stages of traditional enterprise digital transformation?
Hudi 快速体验使用(含操作详细步骤及截图)
Django operates Excel files through openpyxl to import data into the database in batches.
On a un nom en commun, maître XX.
[point cloud processing paper crazy reading classic version 13] - adaptive graph revolutionary neural networks
【毕业季|进击的技术er】又到一年毕业季,一毕业就转行,从动物科学到程序员,10年程序员有话说
Pic16f648a-e/ss PIC16 8-bit microcontroller, 7KB (4kx14)
NPM install installation dependency package error reporting solution
Notes on numerical analysis (II): numerical solution of linear equations
LeetCode 30. Concatenate substrings of all words
2022-1-6 Niuke net brush sword finger offer
npm install安装依赖包报错解决方法
Spark 结构化流写入Hudi 实践
Save the drama shortage, programmers' favorite high-score American drama TOP10
剑指 Offer II 029. 排序的循环链表
精彩回顾|I/O Extended 2022 活动干货分享
Build a solo blog from scratch