Re: Array comparison - subset

Поиск
Список
Период
Сортировка
От Christopher Murtagh
Тема Re: Array comparison - subset
Дата
Msg-id 92fbb7920609041142r47b145fep6199679f63873f8f@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Array comparison - subset  (Michael Fuhr <mike@fuhr.org>)
Список pgsql-general
On 9/3/06, Michael Fuhr <mike@fuhr.org> wrote:
> On Fri, Sep 01, 2006 at 11:55:32AM -0400, Christopher Murtagh wrote:
> > I've got a function that returns and array $foo, and an array $bar.
> > Is there an elegant way to test if $bar is a subset of $foo? I've been
> > looking through the docs and haven't found anything. Am I missing
> > something obvious, or am I out of luck?
>
> In the specific case of integer arrays you could use contrib/intarray.

Cool. This is exactly what I needed. Thanks a bunch!

Cheers,

Chris

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

Предыдущее
От: "Frank Church"
Дата:
Сообщение: Re: Syntax for converting double to a timestamp
Следующее
От: gustavo halperin
Дата:
Сообщение: Porting from ORACLE to PostgSQL