Database Design Question - Categories / Subcategories

后端 未结 6 1830
太阳男子
太阳男子 2020-12-05 12:18

I have a question for how I would design a few tables in my database. I have a table to track Categories and one for Subcategories:

TABLE Category
    Catego         


        
6条回答
  •  时光说笑
    2020-12-05 12:38

    As long as Sub-Categories are never repeated in a different Category, and especially if they have different attributes, then your proposed method is good.

    The one problem can come when you are adding/editing Products, and you don't have a field for Category, even though you probably want a control where the user can edit the Category.

提交回复
热议问题