Search Postgresql Archives

Re: ip contained within subnet

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Scott Brunza <scottso@xxxxxxxxxxxxx> 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 is not 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

-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux