【发布时间】:2012-12-13 06:09:51
【问题描述】:
可能重复:
What are design patterns to support custom fields in an application?
我使用 SQLite 来存储我的数据。我在表中有几列,例如id、title、description 和notes。现在我需要扩展我的数据模型并在数据库中保留other 1、other 2、...、other N 字段。我希望用户动态添加它们。
我只是不知道如何处理这种情况,因为表中的列数是固定的。这种情况的处理方法是什么?
【问题讨论】: