参考书:《数据库系统设计、实现与管理》(基础篇)(黑皮书)
Overview
概念
- Data
- Database(DB)
- integrated 完整的
- related data:逻辑连贯
- table
- 行/元组/记录(row/tuple/record)
- 列/字段/属性/数据项(column/field/attribute/data item)
- Database Management System(DBMS)数据库管理系统:eg.SQL Server
- Database Application(DBAP)数据库应用
- Database Administrator(DBA)数据库管理员
- 数据库系统
WHY
Drawbacks of using file systems
- redundancy冗余,inconsistency不一致,duplication重复
- difficulty in accessing data,获取数据需要写一个程序
- isolation孤立,文件类型和格式多样化
- integrity完整性,该系统不自带完整性约束,只能由程序声明
- atomicity原子性,部分更新产生不一致性
- concurrent并发
Characteristics
- data abstraction数据抽象,与程序分离
- reliability
- integrity constraints约束
- consistency,可通过roll back回到一致的状态
- efficiency
- 空间利用
- access to data
- the performance of queries
- decrease response time of transactions(处理)
History
- 人工管理
- File System
- Database System
- 1st
- 2nd
- 3rd
DBMS
- DDL(data definition language)数据定义语言:创建数据库、table等
- DML(data manipulation language)数据操纵语言:增删查改
- DCL(data control language)数据控制语言:控制哪些用户可以使用数据