使用Postgres 9.5,我想从GROUP BY中继承整数数组.从文档看来似乎array_agg应该能够做到这一点,但我得到:ERROR: cannot accumulate arrays of different dimensionality
ERROR: cannot accumulate arrays of different dimensionality
在我的测试集上使用array_dims,得到[1:18],[1:24]和[1:48].我将其视为3个不同长度的1维阵列.结果应该是一个具有维度的单个数组[1:90]我在这里缺少什么?
sql postgresql
postgresql ×1
sql ×1