2021
01-08
01-08
PostgreSQL 字符串拆分与合并案例
我就废话不多说了,大家还是直接看代码吧~withperson_nameas(selectc.id,array_to_string(array_agg(distinctp.c_name),',')asp_namefrombiz_notification_configcjoinbiz_notification_personponp.id=any(string_to_array(c.persons,',')::int[])groupbyc.id),group_nameas(selectc.id,array_to_string(array_agg(distinctg.c_name),',')as...
继续阅读 >