querying array

Поиск
Список
Период
Сортировка
От Dim Zegebart
Тема querying array
Дата
Msg-id 357D2A38.4892C577@post.comstar.ru
обсуждение исходный текст
Ответы Re: [SQL] querying array  ("Jose' Soares Da Silva" <sferac@bo.nettuno.it>)
Список pgsql-sql
Hi,
is there any way to do selection from table by testing array attribute
for
presence of defined value ?
SQL speaking :
create tabel foo(n int2[]);
insert into foo (n) values('{1,2,3}');
insert into foo (n) values('{4,7,8,5}');
insert into foo (n) values('{4,5}');
//now I want to select only exeplars with n containing '5'. It should be
second and third records :
select * from foo where foo.n?????
//That I shoud type next ?

Thank in advance.

--
____ ____
|   \   /   Dim Zegebart
____/____

Moscow Russia
WWW - http://www.geocities.com/siliconvalley/pines/7817



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

Предыдущее
От: "Jose' Soares Da Silva"
Дата:
Сообщение: Re: [SQL] AUTOINC
Следующее
От: Lendvary Gyorgy
Дата:
Сообщение: questions