Re: array in postgre

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: gavaneh <gavaneh(at)yahoo(dot)com>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: array in postgre
Date: 2004-07-10 04:29:05
Message-ID: 2757.1089433745@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

gavaneh <gavaneh(at)yahoo(dot)com> writes:
> suppose we have the following query:
> select ....from ...where...and x *=3;
> "x" is an integer array,here we want to check whether
> "x" contains 3 or not,this is the same as one of
> postgre documentaion example,however it doesnt
> work.(why???)

Probably because you didn't install the contrib module that supports
the *= operator.

Note that as of 7.4 there is a more standard way to do this.

regards, tom lane

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Tom Lane 2004-07-10 05:55:29 Re: Extended query: parse command freezes backend
Previous Message Tom Lane 2004-07-10 04:14:17 Re: Extended Query: Parse Command: syntax?