Re: searching array

Поиск
Список
Период
Сортировка
Искать
От
Joe Conway
Тема
Re: searching array
Дата
Msg-id
4353ED3B.1070204@joeconway.com
Ответ на
Re: searching array (Matthew Peter)
Список
Дерево обсуждения
searching array Matthew Peter <survivedsushi@yahoo.com>
Re: searching array Tom Lane <tgl@sss.pgh.pa.us>
Re: searching array Joe Conway <mail@joeconway.com>
Re: searching array Matthew Peter <survivedsushi@yahoo.com>
Re: searching array Tom Lane <tgl@sss.pgh.pa.us>
Re: searching array Matthew Peter <survivedsushi@yahoo.com>
Re: searching array Tom Lane <tgl@sss.pgh.pa.us>
Re: searching array Matthew Peter <survivedsushi@yahoo.com>
Re: searching array Matthew Peter <survivedsushi@yahoo.com>
Re: searching array Matthew Peter <survivedsushi@yahoo.com>
Re: searching array Stephan Szabo <sszabo@megazone.bigpanda.com>
Re: searching array Joe Conway <mail@joeconway.com>
Re: searching array Matthew Peter <survivedsushi@yahoo.com>
Matthew Peter wrote:
> Shouldn't >= also return Carols records since she
> contains records GREATER THAN 10000? This is the
> problem I'm having, there's no errors, just no records
> matching the > (gt) part. Only exact matches.

Look again at your query:

SELECT * FROM sal_emp WHERE 10000 >= ALL (pay_by_quarter);

You are asking for matches where 10000 is greater than or equal to all 
the elements in the array. In Carol's case 10000 is less than all the 
elements -- hence no match.

Joe
В списке pgsql-general по дате отправления
От: Matthew Peter
Дата:
Сообщение: Re: searching array
От: Douglas McNaught
Дата:
FAQ