how to use arrays? - Mailing list pgsql-sql

From Viorel Anghel
Subject how to use arrays?
Date
Msg-id 19990203124936.E13507@zeus.advatech.ro
Whole thread Raw
List pgsql-sql
Let's assume the following structure:
  create table T1 (name char(20), code int[]);
  insert into T1 values('abcd', '{1,2,3}');
  ...
  insert into T1 values('xyz', '{3,1}');

Now i want to select all names which contains code=1
SELECT name FROM T1 WHERE 1=T1.code[1] or 1=T1.code[2] ... etc ???

--
        ___
       <o-o>    Viorel ANGHEL <vang@altavista.net>
       [`-']
       -"-"-

pgsql-sql by date:

Previous
From: Claudius du Plessis
Date:
Subject: subscribe pgsql-sql
Next
From: Sebestyen Zoltan
Date:
Subject: ...