questing using array

Поиск
Список
Период
Сортировка
От Kevin Heflin
Тема questing using array
Дата
Msg-id Pine.LNX.4.10.9910121320180.2584-100000@mercury.shreve.net
обсуждение исходный текст
Ответы Re: [GENERAL] questing using array  (Zakkr <zakkr@zf.jcu.cz>)
Re: [GENERAL] questing using array  (Peter Eisentraut <peter_e@gmx.net>)
Список pgsql-general
Just trying to get a handle on how to work with an array as a datatype.

For exampel I set up a table:

name    varchar (20),
ageids  int4[]


Made an INSERT like:

insert into TABLENAME (name, ageids) values ('test', '{1, 2, 3, 4}');


What I haven't been able to figure out is how to do a select where one of
the ageids = a particular number.


I'd like to do something like
select * from tablename where ( any ageids = 3 )

just don't know the syntax.. if this is even possible. Any suggestions
would be appreciated.


Kevin





--------------------------------------------------------------------
Kevin Heflin          | ShreveNet, Inc.      | Ph:318.222.2638 x103
VP/Production         | 333 Texas St #175    | FAX:318.221.6612
kheflin@shreve.net    | Shreveport, LA 71101 | http://www.shreve.net
--------------------------------------------------------------------


В списке pgsql-general по дате отправления:

Предыдущее
От: Moinak Ghosh
Дата:
Сообщение: Increasing BLCKSZ in include/config.h
Следующее
От: Johann Höchtl
Дата:
Сообщение: Stored Procedures