Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-novice by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group