我想知道你的程序员是如何在mysqlhttp://shop.ccs.com中处理这样一个电子商务站点的,它包含了产品、产品质量、大小、颜色价格之间的所有相关信息。我的是
餐桌用品
身份证件
名称
父母
表格大小
身份证件
ID U产品
大小名称
量
表格颜色
身份证件
ID U产品
颜色
量
最佳答案
嗯..我想出了这个结构,希望能有点帮助。一个人应该有一个包含产品信息的主表。在你的情况下,它的产品编号,大小和颜色重复。其余的表连接到主表
1.table products_id (master table)
1.id- Primary Key
2.id_product_size- References size.id (FK)
3.id_product_color- References color.id (FK)
2. table product_name
1.product_id- References product_id.id(FK)
2.name
3.parents
3.table size
1.id- Primary Key
2.size_name
3.quantity
4.table color
1.id- Primary Key
2.colors
3.quantity
关于database - 电子商务网站的最佳数据库结构,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/14471743/