Re: array containing references

From: Renaud Tthonnart <thonnart(at)amwdb(dot)u-strasbg(dot)fr>
To: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: array containing references
Date: 2001-02-28 13:26:12
Message-ID: 3A9CFC74.A4383C2D@amwdb.u-strasbg.fr
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Renaud Tthonnart wrote:

>
> 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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Martijn van Oosterhout 2001-02-28 13:29:05 Re: Re: vacuum and backup
Previous Message Alessio Bragadini 2001-02-28 12:59:26 Re: PostgreSQL packages for Debian potato