postgresql 列轉行

with tmp_table as ( select ‘a’ name1,‘A’::varchar as t union all select ‘a’ name1,‘B’::varchar as t union all select ‘a’ name1,‘C’::varchar as t ) select name1,array_agg(t) t1,string_agg(t,’,’) t2 fro
相關文章
相關標籤/搜索