关系模型
00 分钟
2023-2-10
2023-8-1
type
status
date
slug
summary
tags
category
icon
password
link
Property
Aug 1, 2023 12:30 PM
 

关系数据模型

notion image
 

关系模式

notion image
 

关系数据库

notion image
notion image
notion image
notion image
notion image
notion image
notion image
notion image
 

关系的性质

性质一:列是同质的(Homogeneous),每一列中的分量是同一类型的数据,来自同一个域

notion image

性质二:不同的列可出自同一个域,其中的每一列称为一个属性,不同的属性要给予不同的属性名

teacher是一个属性的名字,(傅华华,高国营)这个属性的取值集合才是域
notion image

性质三:列的顺序无所谓,列的次序可以任意交换

性质四:任意两个元组不能完全相同,由笛卡尔积的性质决定

性质五:行的顺序无所谓,行的次序可以任意交换

性质六:分量必须取原子值,每一个分量都必须是不可分的数据顶,这是规范条件中最基本的一条

notion image
notion image

关系模式与关系数据库

notion image
在一个给定的应用领域中,所有实体及实体之间联系的关系的 集合构成一个关系数据库
 
notion image
 

完整性约束

了解关系数据模型的完整性
notion image
notion image

1.域完整性

notion image

2.实体完整性

notion image
notion image

3.参照完整性

notion image
notion image

4.用户自定义完整性

notion image

评论
  • Twikoo
  • Waline