将查询出的多条记录的某个字段拼接成一个字符串,从而形成一条记录
11g 使用:listagg:
select listagg(字段名,',') within (order by id) from 表名
10g 使用 wm_concat:
select wm_concat(字段名) from 表名
将查询出的多条记录的某个字段拼接成一个字符串,从而形成一条记录
11g 使用:listagg:
select listagg(字段名,',') within (order by id) from 表名
10g 使用 wm_concat:
select wm_concat(字段名) from 表名