MySQL - Sort by IP Address

If you have a column containing ip addresses, sort the ip addresses numerically with:

ORDER BY INET_ATON(ip_address_column)

Comments

Popular posts from this blog

YumRepo Error: All mirror URLs are not using ftp, http[s] or file

Find Which Processes are Using Swap

Excel - Combine Multiple CSV Files