Re: ip contained within subnet

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: ip contained within subnet
Дата
Msg-id 25830.1282244716@sss.pgh.pa.us
обсуждение исходный текст
Ответ на ip contained within subnet  (Scott Brunza <scottso@sonalysts.com>)
Ответы Re: ip contained within subnet  (Scott Brunza <scottso@sonalysts.com>)
Список pgsql-general
Scott Brunza <scottso@sonalysts.com> writes:
> select a.ip, b.foo from tablea a, tableb, b where a.id=b.id and a.ip ! <<= (select network from assets where network
isnot null) 

This is definitely not legal SQL.  I think you are looking for something
like

select a.ip, b.foo from tablea a, tableb b where a.id=b.id and
  not (a.ip <<= any (select network from assets where network is not null))

            regards, tom lane

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

Предыдущее
От: Scott Brunza
Дата:
Сообщение: ip contained within subnet
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Missing Toast Chunk