PostgreSQL中的等效功能是
STRING_AGG()
SELECt STRING_AGG (column_name,', ') FROM my_table
string_agg :连接到字符串中的输入值,由定界符分隔
例如,
agreement_id在Apache Ofbiz 17.12.04中获取所有列表,然后用字符串表示它。
SELECt STRING_AGG(agreement_id, ', ') FROM agreement_item;-- result-- "8000, DS-1000-SALES, DS-1000-PURCH, 9000, AGR_SALES"



