pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
inet type SELECT ...
2+ messages / 2 participants
[nested] [flat]

* inet type SELECT ...
@ 1999-02-23 15:01  The Hermit Hacker <scrappy@hub.org>
  0 siblings, 0 replies; 2+ messages in thread

From: The Hermit Hacker @ 1999-02-23 15:01 UTC (permalink / raw)
  To: pgsql-sql


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 




^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* RE: [SQL] inet type SELECT ...
@ 1999-02-23 17:13  Jackson, DeJuan <djackson@cpsgroup.com>
  0 siblings, 0 replies; 2+ messages in thread

From: Jackson, DeJuan @ 1999-02-23 17:13 UTC (permalink / raw)
  To: The Hermit Hacker <scrappy@hub.org>; 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 



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~1999-02-23 17:13 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
1999-02-23 15:01 inet type SELECT ... The Hermit Hacker <scrappy@hub.org>
1999-02-23 17:13 RE: [SQL] inet type SELECT ... Jackson, DeJuan <djackson@cpsgroup.com>

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