Re: Array intersection

From: Rodrigo De León <rdeleonp(at)gmail(dot)com>
To: "Josh Trutwin" <josh(at)trutwins(dot)homeip(dot)net>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Array intersection
Date: 2007-10-17 16:12:27
Message-ID: a55915760710170912k34be231anf9b225ef7699699@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 10/17/07, Josh Trutwin <josh(at)trutwins(dot)homeip(dot)net> wrote:
> nm - I just wrote a function - though curious if this is the most
> effecient way:

If you only want TRUE or FALSE, you can use '&&':

t=# SELECT '{1,2}'::INT[] && '{2,3}'::INT[];
?column?
----------
t
(1 row)

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Josh Trutwin 2007-10-17 16:20:42 Re: Array intersection
Previous Message Sam Mason 2007-10-17 16:08:06 Re: Array intersection