【数据库】范式

几个概念:
主键:每个表特有的属性列。
非主属性:表中非主键的其他属性列。
完全依赖:非主属性完全依赖于主键,而不能只依赖于主键的一部分。
传递依赖:非主属性 A 依赖于非主属性 B, B 依赖于主键,则A有传递依赖。

这里写图片描述

范式:
(0)0NF:属性可再分,不具原子性。
(1)1NF:属性不可分,具有原子性。(新增原子性)
(2)2NF:1NF + 完全依赖 + 传递依赖。(新增完全依赖)
(3)3NF:2NF + 完全依赖 + 无传递依赖。(解决传递依赖问题)
(4)BCNF:3NF + 主键之间不存在任何依赖关系。

Normal Form
(0)0NF(Un-normalized form):It is the simplest form of representing tables and does not conform to any of the forms of normalization.
(1)1NF(First normal form):The domain of each attribute contains only atomic values.
(2)2NF(Second normal form):A non-prime attribute is determined by the candidate keys, but not a part of any candidate key.
(3)3NF(Third normal form):All the attributes are determined only by the candidate keys.
(4)BCNF(Boyce–Codd normal form):Any candidate key is not determined by another.

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值