Skip to content

Files

Latest commit

0270d79 · Aug 30, 2019

History

History
27 lines (19 loc) · 919 Bytes

15.md

File metadata and controls

27 lines (19 loc) · 919 Bytes

DBMS 中的关系模型

原文: https://beginnersbook.com/2015/04/relational-model-in-dbms/

在关系模型中,数据和关系由相互关联的表的集合表示。每个表都是一组列和行,其中列表示实体的属性,行表示记录。

样本关系模型:具有 3 列和 4 个记录的学生表。

表:学生

Stu_Id Stu_Name Stu_Age
111 Ashish 23
123 Saurav 22
169 Lester 24
234 Lou 26

表:课程

Stu_Id COURSE_ID COURSE_NAME
111 C01 Science
111 C02 DBMS
169 C22 Java
169 C39 Computer Networks

这里Stu_IdStu_NameStu_Age 是表Student的属性,Stu_IdCourse_IdCourse_NameCourse表的属性。具有值的行是记录(通常称为元组)。