当前位置:   article > 正文

listagg函数:正则表达式去重_listagg within group去重

listagg within group去重

select a.xxx,
       regexp_replace(listagg(b.area_proname,',') within group(order by b.area_proname),'([^,]+)(,\1)+', '\1') as area_proname
  from table_1 a,
          table_2 b
where a.xx = b.xx

本文内容由网友自发贡献,转载请注明出处:https://www.wpsshop.cn/w/知新_RL/article/detail/970886
推荐阅读
相关标签
  

闽ICP备14008679号