how to design a schema where the columns of a table are not fixed

后端 未结 6 2032
春和景丽
春和景丽 2020-12-04 01:24

I am trying to design a schema where the columns of a table are not fixed. Ex: I have an Employee table where the columns of the table are not fixed and vary (attributes of

6条回答
  •  感情败类
    2020-12-04 01:24

    Combine your ExtensionColumn tables into one

    Property:
        EmployeeID foreign key
        PropertyName string
        PropertyValue string
    

    If you use a monotonic sequence for assigning primary keys in all your object tables then a single property table can hold properties for all objects.

提交回复
热议问题