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