From: Jasen Betts <jasen@xnet.co.nz>
To: pgsql-sql@postgresql.org
Subject: Re: operator contains in older Pgsql
Date: 18 Aug 2009 09:44:23 GMT
Message-ID: <h6dt5n$t9a$3@reversiblemaps.ath.cx> (raw)
References: <4A8A5C8C.40809@gmail.com>
On 2009-08-18, W. Kinastowski <kinastowski@gmail.com> wrote:
> I need a functionality of "@>" array operator in 8.1 Pg server. i.ex.
> SELECT * FROM table WHERE array_col @> ARRAY ['xxx'] (works in 8.2,
> error in 8.1)
> How to performe such a query ? Is it possible ? Thanks for help.
SELECT * FROM table WHERE 'xxx' = ANY( array_col )
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: jasen@xnet.co.nz
Subject: Re: operator contains in older Pgsql
In-Reply-To: <h6dt5n$t9a$3@reversiblemaps.ath.cx>
* 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