use*_*892 0 postgresql array-agg
如何从Array_AGG查询输出中删除括号{}?
ARRAY_AGG(DISTINCT(SGL.short_name))
Run Code Online (Sandbox Code Playgroud)
从此{01,02}
到此01|02|
谢谢!
使用array_to_string():
ARRAY_TO_STRING(ARRAY_AGG(DISTINCT(SGL.short_name)), '|')
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
2541 次 |
| 最近记录: |