多条数据进行合并成一条数据,逗号分隔

xiaoxiao2021-02-28  29

原始数据:

合并后的数据:

--id是你需要合并的字段

select listagg(id, ',') within group(order by id) as col_name

  from table
转载请注明原文地址: https://www.6miu.com/read-2400103.html

最新回复(0)