ER 图

Entity–relationship model

这里写图片描述
Two related entities shown using Crow’s Foot notation. In this example, an optional relationship is shown between Artist and Song; the symbols closest to the song entity represents “zero, one, or many”, whereas a song has “one and only one” Artist. The former is therefore read as, an Artist (can) perform(s) “zero, one, or many” song(s).

Crow’s Foot的可选项optionality和关联基数cardinality 表示法:

Crow's Foot的可选项optionality和关联基数cardinality 表示法图
Optionality 可选项:用来表示该关联关系是可选的,还是必须的。对于可选的关联关系,通常表现为用于关联的外键字段允许为null值,或者对于使用中间关联关系表的情况下可以不出现关联数据,而必须的关联关系则不允许外键为null或者必须存在关联数据
Cardinality 关联基数:用来表示关联实体的数量上限,为1、n等
图中右边部分表示的意义如下:1个A必须关联到1个或多个B,一个B可以关联0个或1个A

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值