当前位置:网站首页>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
边栏推荐
- [point cloud processing paper crazy reading classic version 7] - dynamic edge conditioned filters in revolutionary neural networks on Graphs
- 拯救剧荒,程序员最爱看的高分美剧TOP10
- Jenkins learning (I) -- Jenkins installation
- Tag paste operator (#)
- Using Hudi in idea
- [kotlin learning] operator overloading and other conventions -- overloading the conventions of arithmetic operators, comparison operators, sets and intervals
- Move anaconda, pycharm and jupyter notebook to mobile hard disk
- Liteide is easy to use
- [kotlin learning] classes, objects and interfaces - define class inheritance structure
- Vs2019 configuration opencv3 detailed graphic tutorial and implementation of test code
猜你喜欢
![[point cloud processing paper crazy reading classic version 8] - o-cnn: octree based revolutionary neural networks for 3D shape analysis](/img/fa/36d28b754a9f380bfd86d4562268c3.png)
[point cloud processing paper crazy reading classic version 8] - o-cnn: octree based revolutionary neural networks for 3D shape analysis

2022-2-13 learning the imitation Niuke project - home page of the development community

Overview of image restoration methods -- paper notes

Wonderful review | i/o extended 2022 activity dry goods sharing

LeetCode 438. Find all letter ectopic words in the string

CSDN markdown editor help document

Crawler career from scratch (I): crawl the photos of my little sister ① (the website has been disabled)

【点云处理之论文狂读前沿版12】—— Adaptive Graph Convolution for Point Cloud Analysis

Detailed steps of windows installation redis

On a un nom en commun, maître XX.
随机推荐
拯救剧荒,程序员最爱看的高分美剧TOP10
Spark 结构化流写入Hudi 实践
数字化管理中台+低代码,JNPF开启企业数字化转型的新引擎
【点云处理之论文狂读经典版12】—— FoldingNet: Point Cloud Auto-encoder via Deep Grid Deformation
Recommend a low code open source project of yyds
On February 14, 2022, learn the imitation Niuke project - develop the registration function
LeetCode 508. The most frequent subtree elements and
Excel is not as good as jnpf form for 3 minutes in an hour. Leaders must praise it when making reports like this!
LeetCode 515. Find the maximum value in each tree row
WARNING: You are using pip version 21.3.1; however, version 22.0.3 is available. Prompt to upgrade pip
2022-2-14 learning xiangniuke project - generate verification code
[point cloud processing paper crazy reading classic version 14] - dynamic graph CNN for learning on point clouds
LeetCode 1089. 复写零
NPM install installation dependency package error reporting solution
Simple use of MATLAB
Low code momentum, this information management system development artifact, you deserve it!
精彩回顾|I/O Extended 2022 活动干货分享
Sword finger offer II 029 Sorted circular linked list
Go language - IO project
CSDN markdown editor help document