【发布时间】:2016-03-02 16:16:51
【问题描述】:
我在 postgresql 中有一个列定义为 REAL[] 类型,当我尝试在该列中插入一个值时,它会导致错误。
值是一个数字数组,像这样:[23.4, -45, 7895]
由此产生的错误是:operator does not exist: real[] = numeric[]
我该怎么办?
【问题讨论】:
-
恕我直言,最好在 postgres 表中使用
numeric类型。浮点类型很少有用。
标签: python postgresql numeric