Table 1. The relationship between the multiple
1-one:
2-to-many (many)
such as: employee and department staff but a sector corresponding to a plurality of values corresponding to a sector employee
3-many:
The : students and curriculum
2. To achieve the relationship:
1-to-many (many)
ways: the establishment of a foreign key in a multi-party, pointing to a party primary key
2. to-many
Implementation: need the help of a third middle of the table.
Intermediate table comprising at least two fields, the two fields third table as a foreign key, the two tables point to the primary key
NOTE: use a "primary key"
3. One to One
Ways: You can add 'unique' foreign key to the other in either one of the primary key.
2. Fan test database
backup and restore 5. Database