<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr</title>
<link>http://snipplr.com/language/sql/tags/optmize</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Sun, 07 Sep 2008 14:42:37 GMT</pubDate>
<item>
<title>(SQL) Storing an IP address in a database table - zingo</title>
<link>http://snipplr.com/view/5761/storing-an-ip-address-in-a-database-table/</link>
<description><![CDATA[ <p>You can store an IP address in an INT UNSIGNED (4 bytes) which is of course much more efficient and faster than a CHAR(15).
MySQL has two built-in functions: INET_ATON() and INET_NTOA(). These two functions are used allover the place in any TCP/IP stack implementation or even application.
The INET_ATON() function converts Internet addresses from the numbers-and-dots notation into a 32-bit unsigned integer, and INET_NTOA() does the opposite.</p> ]]></description>
<pubDate>Wed, 09 Apr 2008 20:31:52 GMT</pubDate>
<guid>http://snipplr.com/view/5761/storing-an-ip-address-in-a-database-table/</guid>
</item>
</channel>
</rss>