需求分析的任务 figure out what system do,Real-world specific needs
数据流程图 Data Flow Diagram
分层的;子图与父图输入输出平衡 layered
The input and output data flow of the subgraph corresponds to the number of inputs and outputs processed by the parent graph
The flow must be consistent
数据字典 Data dictionary
概念层数据模型
实体-联系模型
We use Hybrid strategy to design the system;自顶向下地进行需求分析
自底向上设计概念模型 Conduct a needs analysis from the top down
Design conceptual models from the bottom up
实体完整性约束 Entity Integrity means the primary key can't be null
参照完整性 Referential integrity
need to check before modify
E-R to 关系模型
SQL
备份和恢复数据库*
数据库故障的种类
恢复的实现技术
记录日志
新值写入磁盘前,对应记录先写入日志并保存入磁盘
数据转存
整个数据库
更新数据
恢复策略
事务
事务是用户自定义的一个数据库操作集合。这些操作
要么全做,要么全不做,是不可分隔的工作单位。A transaction is a user-defined collection of database operations. These actions
Do it all or don't, it's an inseparable unit of work.
事务的特征 AtomicityConsistencyIsolationDurability
数据库系统的结构
三级模式结构
外模式/模式映像——逻辑数据独立性External schema/schema image – logical data independence
关系代数=元组运算
关系数据库规范化理论
函数依赖
why we discuss about function dependency?消除依赖,减少数据冗余。Eliminate dependencies and reduce data redundancy.
关系规范化 范式 to BCNF
权限管理
起初我们试图用权限来区分前后台的功能模块。At first, we tried to use permissions to distinguish between the front and back function modules.
视图
视图的作用 我们用视图来帮助查询数据,以达到方便查询并保护数据的目的。We use views to help query data for the purpose of facilitating and protecting data.