📜  array aggre distinct postgres - SQL 代码示例

📅  最后修改于: 2022-03-11 15:05:07.634000             🧑  作者: Mango

代码示例1
SELECT ARRAY(SELECT DISTINCT e FROM unnest(ARRAY[a,b,c,d]) AS a(e))
FROM ( VALUES
  ('foo', 'bar', 'foo', 'baz' )
) AS t(a,b,c,d);