Database design question

后端 未结 4 1313
一个人的身影
一个人的身影 2020-12-11 04:03

I have a form where users submit different fields to create events. The number and type of fields requested are different on each form, depending on the category of event. W

4条回答
  •  悲哀的现实
    2020-12-11 04:12

    It depends on how drastically different your forms are. I say have different fields for each entry item...having 1 field with multiple items in it will just make queries much more difficult. If your forms aren't too different, then 1 table with each possible field would be ok, but if your table has 20+ fields in it, then I'd suggest splitting those tables up. I'd also recommend a header table with a "form type" field to help searches as well.

提交回复
热议问题