学习自b站骆昊jackfrued 老师的网课。
graph LR
R[关系型数据库]-->T[理论基础]
R-->S[具体表象]
R-->L[编程语言 SQL]
T-->A[关系代数]
T-->C[关系运算]
T-->P[一阶谓词逻辑]
S-->Ta[二维表]
L-->D[DDL]
L-->M[DML]
L-->Q[DQL]
L-->DCL[DCL]
DDL: create / drop / alter (database 或 schema 数据库名 / table 表名)
DML: insert / update / delete
DQL: select …… from
DCL: grant(授权) / revoke(召回权限)
正式的关系模型术语 | 非正式的日常用语 |
---|---|
关系(relation) | 表(table) |
元组(tuple)记录 | 行(row)或记录(record) |
势(cardinality) | 行数(number of rows) |
属性(attribute) | 列(column)或字段(field) |
度(degree) | 列数(number of columns) |
定义域(domain) | 列的取值集合(pool of legal values) |