|
A database consists of tables and columns. | ||||||||||||
|
Database Design Terminology | ||||||||||||
| ||||||||||||
|
Entity: An entity maps something in the real world. For example, departments within an organization, employees, or sales. | ||||||||||||
|
Attribute: Represent information about an entity instance or an object. For example, the birth date or Social Security number of an employee. | ||||||||||||
|
Entities (classes) are implemented in the database as tables. | ||||||||||||
|
Attributes are implemented in the database as columns. | ||||||||||||
|
Instances (objects) are implemented in the database as rows. | ||||||||||||
|
A primary key uniquely identifies a specific instance of an entity. | ||||||||||||
|
No two instances of an entity can have the same primary key. | ||||||||||||
|
The values of all parts of the primary key must never be null. | ||||||||||||
|
The most common types of primary keys in relational databases are ID numbers. | ||||||||||||
|
Sometimes more than one attribute (or sets of attributes) can be used as a primary key. |
Understanding basic database terminology
最新推荐文章于 2025-10-21 22:09:11 发布
本文深入探讨了数据库设计的基础概念,包括实体、属性、类、实例等,并详细解释了它们之间的关系以及如何在数据库中实现这些概念。
1754

被折叠的 条评论
为什么被折叠?



