当前位置:网站首页>【csnote】ER图
【csnote】ER图
2022-04-23 12:34:00 【白速龙王的回眸】
【ER图】
entity-relationship,有三个组成部分:实体、属性、链系
用来进行关系型dbs的概念设计
【实体的三种联系】
包括一对一、一对多、多对多三种
如果A到B是一对多关系,那么画个带箭头的线段指向B
如果是一对一,画两个带箭头的线段
如果是多对多,画两个不带箭头的线段
(被指着的是1?)

【表示出现多次的关系】
一个实体在链系出现几次,就要用几条线连接。
下图表示一个课程的先修关系,先修关系出现两个Course实体,第一个是先修后一个是后修,要用两条线表示这种关系:

【联系的多向性】
虽然老师可以开设多门课,并教授多个学生,对于特定的学生和课程只有一个老师教授,这就够成了三元联系

【表示子类】
用一个三角和两个线表示类和子类,与子类有关的属性和联系都连上去,而与父类和子类有关的都连父类

版权声明
本文为[白速龙王的回眸]所创,转载请带上原文链接,感谢
https://bridge-killer.blog.csdn.net/article/details/124361701
边栏推荐
- 面了一圈,整理了这套面试题。。
- Solution of asynchronous clock metastability -- multi bit signal
- Idea database navigator plug-in
- Qt双缓冲绘图
- 31岁才转行程序员,目前34了,我来说说我的经历和一些感受吧...
- 洛谷P5540 [BalkanOI2011] timeismoney | 最小乘积生成树 题解
- Fastjson 2 is coming, the performance continues to improve, and it can fight for another ten years
- Pagoda panel command line help tutorial (including resetting password)
- Number of nodes of complete binary tree
- 网站首页文件被攻击篡改的形式有哪些
猜你喜欢
随机推荐
甲辰篇 創世紀《「內元宇宙」聯載》
Flash project cross domain interception and DBM database learning [Baotou cultural and creative website development]
SynchronousQueue 源码解析
I changed to a programmer at the age of 31. Now I'm 34. Let me talk about my experience and some feelings
XinChaCha Trust SSL Organization Validated
数组---
How to switch PHP version in Windows 2008 system
Debug Jest test cases in VSCode, debug Jest test cases in VSCode, middle note basedir=$(dirname "$" (echo "$0" sed -e -e, s, \ \, / "-e").
标签与路径
天梯赛赛前练习
Pagoda panel command line help tutorial (including resetting password)
IDEA 代码格式化插件Save Actions
mysql中 innoDB执行过程分析
Zero trust in network information security
Qt重绘事件与剪切
宝塔面板命令行帮助教程(包含重置密码)
Nativeformysql connects to MySQL 8 prompt: 1251 - client does not support authentication protocol
Recommended programming AIDS: picture tool snipaste
航芯技术分享 | ACM32 MCU安全特性概述
网络信息安全之零信任









