1.Oracle中将查问出的多条记录的某个字段拼接成一个字符串的办法
11g外面用listagg:(19c也可用)
select listagg(name,',') within (order by id) from table
10g外面用wm_concat:
select wm_concat(name) from table
wm_concat是undocument的
listagg是11g document的
11g外面用listagg:(19c也可用)
select listagg(name,',') within (order by id) from table
10g外面用wm_concat:
select wm_concat(name) from table
wm_concat是undocument的
listagg是11g document的
发表回复