当前位置:网站首页>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
边栏推荐
- AcWing 788. Number of pairs in reverse order
- 2022-2-13 learning xiangniuke project - version control
- Crawler career from scratch (V): detailed explanation of re regular expression
- 【点云处理之论文狂读经典版8】—— O-CNN: Octree-based Convolutional Neural Networks for 3D Shape Analysis
- 一个优秀速开发框架是什么样的?
- Matlab dichotomy to find the optimal solution
- Build a solo blog from scratch
- Windows安装Redis详细步骤
- 【Kotlin疑惑】在Kotlin类中重载一个算术运算符,并把该运算符声明为扩展函数会发生什么?
- Install third-party libraries such as Jieba under Anaconda pytorch
猜你喜欢
Principles of computer composition - cache, connection mapping, learning experience
AcWing 787. Merge sort (template)
浅谈企业信息化建设
Win10 quick screenshot
What are the stages of traditional enterprise digital transformation?
[point cloud processing paper crazy reading cutting-edge version 12] - adaptive graph revolution for point cloud analysis
Temper cattle ranking problem
LeetCode 515. Find the maximum value in each tree row
常见渗透测试靶场
On February 14, 2022, learn the imitation Niuke project - develop the registration function
随机推荐
State compression DP acwing 91 Shortest Hamilton path
CSDN markdown editor help document
Sword finger offer II 091 Paint the house
Introduction to the basic application and skills of QT
[point cloud processing paper crazy reading frontier version 11] - unsupervised point cloud pre training via occlusion completion
Go language - JSON processing
Temper cattle ranking problem
[kotlin learning] classes, objects and interfaces - classes with non default construction methods or attributes, data classes and class delegates, object keywords
【点云处理之论文狂读经典版8】—— O-CNN: Octree-based Convolutional Neural Networks for 3D Shape Analysis
LeetCode 57. Insert interval
低代码前景可期,JNPF灵活易用,用智能定义新型办公模式
LeetCode 30. Concatenate substrings of all words
常见渗透测试靶场
【点云处理之论文狂读经典版11】—— Mining Point Cloud Local Structures by Kernel Correlation and Graph Pooling
Solve POM in idea Comment top line problem in XML file
【点云处理之论文狂读前沿版9】—Advanced Feature Learning on Point Clouds using Multi-resolution Features and Learni
【Kotlin学习】类、对象和接口——定义类继承结构
Use the interface colmap interface of openmvs to generate the pose file required by openmvs mvs
We have a common name, XX Gong
拯救剧荒,程序员最爱看的高分美剧TOP10