Re: [GENERAL] order by - Mailing list pgsql-general

From Bruce Momjian
Subject Re: [GENERAL] order by
Date
Msg-id 199806111731.NAA16571@candle.pha.pa.us
Whole thread Raw
In response to Re: [GENERAL] order by  (dave madden <dhm@paradigm.webvision.com>)
List pgsql-general
>
> There may be a special function (or you could write one) to sort
> numbers which are represented as varchars, but a better solution would
> be to re-store the IP numbers as integers.  This will also allow you
> to work on them with netmasks and so forth.  Convert them back to
> A.B.C.D when you print them out.
>

See contrib/ip_and_mac.

--
Bruce Momjian                          |  830 Blythe Avenue
maillist@candle.pha.pa.us              |  Drexel Hill, Pennsylvania 19026
  +  If your life is a hard drive,     |  (610) 353-9879(w)
  +  Christ can be your backup.        |  (610) 853-3000(h)

pgsql-general by date:

Previous
From: dave madden
Date:
Subject: Re: [GENERAL] order by
Next
From: Byron Nikolaidis
Date:
Subject: Re: [GENERAL] PostgreSQL/ODBC/WinNT?