Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Chapter 7. Sorting Query Results > Sorting Dotted-Quad IP Values in Numeric Ord...

7.14. Sorting Dotted-Quad IP Values in Numeric Order

7.14.1. Problem

You want to sort strings that represent IP numbers in numeric order.

7.14.2. Solution

Break apart the strings, and sort the pieces numerically. Or just use INET_ATON⁠(⁠ ⁠ ⁠).


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial