Search Postgresql Archives

Re: array_cat without duplicity

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 19 Mar 2008, Ondřej Fafejta <ondrej.fafejta@xxxxxxxxxx> writes:
> SELECT array_cat(ARRAY[1,2], ARRAY[2,3]);
> array_cat
> -----------
> {1,2,2,3}
>
> I need to get result without duplicity!
> {1,2,3}

I don't know any builtin way of achieving such a thing. But you may want
to use intarray contrib module or implement your own PL function to
remove duplicates from an array.


Regards.

-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux