MySQL notes (b)

1, multiple tables, foreign key constraints added

Below, there are two tables, and the tables product category table, wherein the product attributes in the attribute table cid CNO, it is the category table.

The following diagram, is how to set the foreign key constraint to the two tables, and how to delete some of the data table after two of association.

2, one-to-many and one-built table principle


Published 29 original articles · won praise 5 · Views 8581

Guess you like

Origin blog.csdn.net/Ydecube/article/details/104083763