我怎样才能减少具有相同 属性 的表格

how could I reduce tables with same property

我有 7 个 table,它们都具有相同的 属性。

有什么方法可以减少 tables 吗?

您可以按如下方式分隔 table

Table 1 - DaysMaster
DayId   DayName
1       Saturday
2       Sunday
3       Monday
.       ....

Table 2 - ShiftMaster
ShiftId   ShiftName
1         sixToEight
2         EightToNine

Table3 - DayShiftMapping
DayShiftMappingId  DaysId  ShiftId Activity
1                  1       1       NULL
2                  1       2       eating breakfast 
3                  2       2       running  

我在这里为天数和班次创建了两个主 table,最后 table 您可以插入班次详细信息,例如 daysId - 参考来自 table 1 和 ShiftId - 参考来自 table 2 并根据您的要求添加额外的列

希望对您有所帮助!