数据库的键

超键是具有唯一性的一个或多个列,

候选键满足了超键,但只有一列,

主键是用户用作标识选定的一个候选键,

外键是其它表中的主键,就称这个表的外键,

参考:https://github.com/0voice/interview_internal_reference/blob/master/09.MySQL%E7%AF%87/9.1.0%20%E4%B8%BB%E9%94%AE%20%E8%B6%85%E9%94%AE%20%E5%80%99%E9%80%89%E9%94%AE%20%E5%A4%96%E9%94%AE.md

posted on 2021-01-13 22:03  吃我一枪  阅读(152)  评论(0编辑  收藏  举报

导航