Introduction to table relationships in multi-table design

1.1.1 Relationship between tables
1.1.1.1 One-to-many relationship
l One-to-many example:
n A department can have multiple employees, and an employee can only belong to a certain department.
1.1.1.2 Many-to-many relationship
l Examples of many-to-many:
n One student can choose many courses, and one course can be chosen by many students.
1.1.1.3 One-to-one relationship
l One-to-one example:
n One company can have one registered address, and one registered address can only correspond to one company.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325163149&siteId=291194637