Re: Query-ing arrays

Поиск
Список
Период
Сортировка
От Stephan Szabo
Тема Re: Query-ing arrays
Дата
Msg-id Pine.BSF.4.10.10009010906530.70404-100000@megazone23.bigpanda.com
обсуждение исходный текст
Ответ на Query-ing arrays  (Jon Lapham <jlapham@gandalf.bioqmed.ufrj.br>)
Ответы Re: Query-ing arrays
Список pgsql-sql
I'd suggest checking the array utilities in contrib.  I believe
it has functions/operators for element in set.

Stephan Szabo
sszabo@bigpanda.com

On Fri, 1 Sep 2000, Jon Lapham wrote:

> Stupid FAQ probably:
> 
> Is it possible to query an array for an item WITHOUT KNOWING where in the
> array the item might be held?
> 
> For example, I have a tbale with the following character array:
> > category char(3)[],
> 
> I would like to find all records in which 'category' contains an array
> element of a certain type, like maybe 'xxx' for instance.  So, for a
> particular record, 'category' may be set to '{'gfe','qwe','xcs','xxx'}'
> 
> I cannot do:
> SELECT * FROM blah WHERE category[4]='xxx';
> because I do not know that the 'xxx' will always be in the 4th position.



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

Предыдущее
От: Jon Lapham
Дата:
Сообщение: Query-ing arrays
Следующее
От: Jon Lapham
Дата:
Сообщение: Re: Query-ing arrays