SQL query beginner's Guide Reading Notes (I) Introduction to relational databases and SQL, beginner's Guide Reading Notes
Part I: Relational Databases and SQL
Chapter2, Ensuring Your Database Structure IsSound.
Database Design Guidelines
What is a relational database?
RDBMS (A Relational database management systems) Relational database
Tables
Tables are the mainstructures in the database. Each table always represents
Single, specificsubject.
Fields
A field is thesmallest structure in the database, and it represents a characteristic
Of the subject ofthe table to which it belongs.
Records
A record representsa unique instance of the subject of a table.
Keys
Keysare special fields that play very specific roles within a table. eg.
The primary key is used to ensure the uniqueness of data records. That is to say, the primary key constraint must ensure that all data records in a database table are different individuals. For example: the ID card number can ensure that a person is an independent individual on the Chinese mainland (if it is wrong, it is not counted). That is, an ID card number cannot identify two people or two ID card numbers. Therefore, the primary key is analyzed from the existing data, not randomly added by the designer.
Relationships