From: Jackson, DeJuan <djackson@cpsgroup.com>
To: The Hermit Hacker <scrappy@hub.org>
To: pgsql-sql@postgreSQL.org
Subject: RE: [SQL] inet type SELECT ...
Date: Tue, 23 Feb 1999 11:13:16 -0600
Message-ID: <F10BB1FAF801D111829B0060971D839F6A4BE0@cpsmail> (raw)
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: djackson@cpsgroup.com, scrappy@hub.org
Subject: Re: [SQL] inet type SELECT ...
In-Reply-To: <F10BB1FAF801D111829B0060971D839F6A4BE0@cpsmail>
References: <F10BB1FAF801D111829B0060971D839F6A4BE0@cpsmail>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox