4

Is it possible to add custom metadata to an SQLite column? Or will I need to store it in a separate column or table?

I'm working on a database where I'd like to store the units of a column in some form, i.e. a Temperature column being in units of Kelvin. Is it possible to store this as a string or some form of custom metadata attached to the column?

4

1 回答 1

0

我相信没有。您可以添加另一列。您还可以以某种方式将元数据编码为值(["fruit:apple", "fruit:pear", "mineral:bauxite", ...]),但这会使很多数据更难处理且效率更低。

通常,无论如何,您可能只需要列中的一种类型的数据。

于 2012-05-25T06:00:51.467 回答