Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Sorting varchars that contain IP addresses

Sorting varchars that contain IP addresses

From: Joe Whalley <jw_at_mitre.org>
Date: 1997/07/22
Message-ID: <33D4FD08.298A@mitre.org>#1/1

I am trying to retrieve a list of IP numbers that are stored as character strings. When I sort them, I want them in "numerical" order, but since they are strings, they get sorted as text, e.g.:

129.83.149.10
129.83.149.11
129.83.149.2
129.83.149.21

What I want is:

129.83.149.2
129.83.149.10
129.83.149.11
129.83.149.21

Any good ideas?

Thanks - Joe Received on Tue Jul 22 1997 - 00:00:00 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US