← 返回首页

数据库系统

Database Systems

课程介绍 Course Introduction

学分:4 | 先修课:数据结构、离散数学 | 学期:第4学期

数据库系统课程讲解关系数据库的核心理论与应用开发技术。主要内容包括关系模型与关系代数、SQL语言、数据库设计(E-R模型、规范化理论、函数依赖)、查询处理与优化、事务管理与并发控制、恢复机制、存储与索引结构(B+树、哈希索引),以及NoSQL与分布式数据库基础。课程结合实际项目,培养学生设计、实现与优化数据库应用的能力。

This course covers the theory and application of relational databases. Topics include the relational model and algebra, SQL, database design with E-R models, normalization, and functional dependencies, query processing and optimization, transaction management and concurrency control, recovery, storage and indexing with B+ trees and hash, and NoSQL and distributed database fundamentals. Projects develop database design and optimization skills.

大作业 Final Project

作业标题:图书管理系统数据库设计

学生需完成一个图书管理系统的数据库设计与实现,包括需求分析、E-R建模、关系模式设计、规范化到第三范式,并使用SQL实现建表、查询、借还书、罚款计算等业务逻辑。要求包含存储过程、触发器及索引优化。交付物为数据库脚本、设计文档及测试数据。

Students complete the database design and implementation of a library management system, including requirements analysis, E-R modeling, schema design, normalization to 3NF, and SQL implementation of tables, queries, borrowing, returning, and fine calculation. Stored procedures, triggers, and index optimization are required. Deliverables include scripts, design documents, and test data.

实施步骤 Implementation Steps

📋 示例:自己实现一个简化版的数据库引擎,比如支持基本的SQL查询和B+树索引。你需要设计存储层用页式管理数据,实现查询解析器和执行器,支持SELECT和INSERT操作,并测试其查询性能。
步骤 1
数据库需求分析
分析图书馆管理需求,识别实体(图书、读者、借阅记录等)和关系
产出:需求分析文档
步骤 2
E-R建模与关系设计
设计E-R图,转换为关系模式,进行规范化设计
产出:数据库设计文档
步骤 3
SQL实现
编写DDL创建数据库和表,实现图书管理、借阅、查询等功能
产出:SQL脚本
步骤 4
性能优化
设计索引策略,优化查询性能,进行事务处理
产出:优化方案
步骤 5
文档提交
整理设计文档和使用说明
产出:最终提交材料

Steps

Step 1
Requirements Analysis
Analyze library management needs, identify entities and relationships
Deliverable: Requirements Doc
Step 2
E-R Modeling
Design E-R diagram, convert to relational schema
Deliverable: Database Design Doc
Step 3
SQL Implementation
Write DDL, implement book management and queries
Deliverable: SQL Scripts
Step 4
Performance Optimization
Design indexing strategy, optimize queries
Deliverable: Optimization Plan
Step 5
Documentation
Prepare design documentation and user manual
Deliverable: Final Submission

Prerequisites · International Exams · Contact · Back to top · Home