<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr - zingo</title>
<link>http://snipplr.com/users/zingo/tags/database</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Thu, 16 Oct 2008 18:00:20 GMT</pubDate>
<item>
<title>(SQL) Storing an IP address in a database table</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>
<item>
<title>(SQL) Generate Simple Bar Charts From a MySQL Prompt</title>
<link>http://snipplr.com/view/3934/generate-simple-bar-charts-from-a-mysql-prompt/</link>
<description><![CDATA[ <p>You can generate a simple bar chart of the values by executing this command...</p> ]]></description>
<pubDate>Fri, 19 Oct 2007 00:40:13 GMT</pubDate>
<guid>http://snipplr.com/view/3934/generate-simple-bar-charts-from-a-mysql-prompt/</guid>
</item>
</channel>
</rss>