Re: array containing references

From: Renaud Tthonnart <thonnart(at)amwdb(dot)u-strasbg(dot)fr>
To: Michael Ansley <Michael(dot)Ansley(at)intec-telecom-systems(dot)com>, "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: array containing references
Date: 2001-02-28 14:15:16
Message-ID: 3A9D07F3.9F6126D4@amwdb.u-strasbg.fr
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Michael Ansley wrote:

>
>
> Use the array stuff in the contrib directory. There are functions
> there to do this.
>
> Cheers...
>
> MikeA
>
>
> > CREATE TABLE xxx
> > (
> > id int,
> > nom varchar(10),
> > ref int[],
> > PRIMARY KEY(id)
> > );
> >
> > INSERT INTO xxx VALUES( 1,'aaa','{10,20,30,50}');
> > INSERT INTO xxx VALUES( 2,'bbb','{10,30,40}');
> > INSERT INTO xxx VALUES( 3,'ccc','{20,40}');
> >
>
> Or more simply:
> How can I get ihe id of the tuple for which the array contains 30 for
> example
>
>

Thank you for your help but could you be more clear?
Where exactly do I search to find array stuff.
I went on the website of postgresql in directory contrib of download but
I didn't find it.

Cheers, Renaud THONNART

Browse pgsql-general by date

  From Date Subject
Next Message Alessio Bragadini 2001-02-28 14:19:58 Re: Addison-Wesley looking for authors
Previous Message Richard Huxton 2001-02-28 14:15:02 Re: store procedure in pl/pgsql