Re: How to Return Unique Elements From An Array?

From: Haller Christoph <ch(at)rodos(dot)fzk(dot)de>
To: bhuvansql(at)yahoo(dot)com (Bhuvan A)
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: How to Return Unique Elements From An Array?
Date: 2001-10-08 16:45:36
Message-ID: 200110081445.QAA03217@rodos
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Have you tried already
SELECT DISTINCT <your_array> FROM <your_table> ;
If you receive an error message like
Unable to identify an ordering operator ...
Refer to 'Server Programming' section Extending SQL: Operators
to learn about creating your own operators for array comparison
Or search the mailing-list for similar requests.
Regards, Christoph
>
> hello all,
>
> how can we get unique elements from an array(of any type)?
>
> Regards,
> Bhuvaneswar.

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Janning Vygen 2001-10-08 17:17:05 Re: Problem with n to n relation
Previous Message Stephan Szabo 2001-10-08 16:09:03 Re: Problem with n to n relation