pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Haller Christoph <ch@rodos.fzk.de>
To: bhuvansql@yahoo.com
Cc: pgsql-sql@postgresql.org
Subject: Re: How to Return Unique Elements From An Array?
Date: Mon, 08 Oct 2001 16:45:36 METDST
Message-ID: <200110081445.QAA03217@rodos> (raw)
In-Reply-To: <Pine.LNX.4.20.0110081414390.6146-100000@Larry.bks>

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.




view thread (2+ messages)  latest in thread

Message-ID: <200110081445.QAA03217@rodos>
Permalink:  ../200110081445.QAA03217@rodos/
Also on:    postgresql.org/message-id/200110081445.QAA03217@rodos

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: ch@rodos.fzk.de, bhuvansql@yahoo.com
  Subject: Re: How to Return Unique Elements From An Array?
  In-Reply-To: <200110081445.QAA03217@rodos>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox