--一条记录变多条记录 select regexp_split_to_table(<字段>,‘,‘) as <新字段名> from <数据库表> where <查询条件> --多条记录变一条记录 select string_agg(<字段>,‘‘) as <新字段名> from <数据库表> where c_bh <查询条件>
记录合并与拆分
原文:https://www.cnblogs.com/abuduri/p/13345612.html