Re: operator contains in older Pgsql

From: Jasen Betts <jasen(at)xnet(dot)co(dot)nz>
To: pgsql-sql(at)postgresql(dot)org
Subject: Re: operator contains in older Pgsql
Date: 2009-08-18 09:44:23
Message-ID: h6dt5n$t9a$3@reversiblemaps.ath.cx
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On 2009-08-18, W. Kinastowski <kinastowski(at)gmail(dot)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 )

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message W. Kinastowski 2009-08-18 10:16:58 Re: operator contains in older Pgsql
Previous Message W. Kinastowski 2009-08-18 07:47:24 operator contains in older Pgsql