NOTE

Relational Database

Relational databases organize data using the relational model. These notes introduce relations and their components as the basis of the model.

DatabasesCreated Updated 1 min readhistorical

This is a historical learning note and may contain outdated or incomplete understanding.

1. What Is a Relational Database

  • A database that uses the relational model to organize data
  • Relationships
    • One-to-one
    • One-to-many
    • Many-to-many: can be decomposed into two one-to-many relationships through an intermediate table

2. Why Relational Databases Are Needed

3. Characteristics of Relational Databases

3.1. Table-Structured Storage

  • Data is stored using a two-dimensional table model, in rows and columns

3.2. Normalized Design

3.3. Query Data Using SQL

3.4. Support Transactions

4. Database Optimization

5. Database Principles

5.1. SQL Execution Order

5.2. Locks

5.3. B+Tree

6. Common Relational Databases

6.1. MySQL

6.2. PostgreSQL

7. References

Discussion

Sign in with GitHub to comment. Discussions are stored as GitHub Issues.View on GitHub