postgres 查询结果保存为数组

使用`array_agg() 方法

原文地址:https://www.cnblogs.com/qianxunman/p/13697155.html