RE: [SQL] inet type SELECT ... - Mailing list pgsql-sql

From Jackson, DeJuan
Subject RE: [SQL] inet type SELECT ...
Date
Msg-id F10BB1FAF801D111829B0060971D839F6A4BE0@cpsmail
Whole thread Raw
List pgsql-sql
select etheraddr from ethernets2 where ip << '131.162.2/24';

> -----Original Message-----
> How would I write this query so that it works?
>
> select etheraddr from ethernets2 where ip like '131.162.2.%';
>
> where ip is of type 'inet'...
>
> I get an error to the effect of:
>
> hostmgmt=> \e
> ERROR:  There is more than one possible operator '~~' for
> types 'inet' and
>         'unknown'.  You will have to retype this query using
> an explicit
>         cast
>
>
> Marc G. Fournier
> Systems Administrator @ hub.org
> primary: scrappy@hub.org           secondary:
> scrappy@{freebsd|postgresql}.org

pgsql-sql by date:

Previous
From: The Hermit Hacker
Date:
Subject: inet type SELECT ...
Next
From: "Ken Mort"
Date:
Subject: Re: [SQL] 8K limit ...