<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>

<channel>
	<title>Carsten's Random Ramblings &#187; MySQL Function of the day</title>
	<atom:link href="http://www.bitbybit.dk/carsten/blog/?feed=rss2&#038;cat=9" rel="self" type="application/rss+xml" />
	<link>http://www.bitbybit.dk/carsten/blog</link>
	<description>on MySQL, PHP, programming and stuff</description>
	<pubDate>Mon, 03 May 2010 19:58:43 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.2</generator>
	<language>en</language>
			<item>
		<title>DATABASE() :: MySQL Function of the Day</title>
		<link>http://www.bitbybit.dk/carsten/blog/?p=201</link>
		<comments>http://www.bitbybit.dk/carsten/blog/?p=201#comments</comments>
		<pubDate>Tue, 29 Apr 2008 07:24:42 +0000</pubDate>
		<dc:creator>Carsten</dc:creator>
		
		<category><![CDATA[MySQL Function of the day]]></category>

		<guid isPermaLink="false">http://www.bitbybit.dk/carsten/blog/?p=201</guid>
		<description><![CDATA[Function name: DATABASE()
Aliases: -
Function type: Information function 
 Purpose: Return the name of the current database
Description: DATABASE() returns the value of the currently selected database (default database selected either when logging into the server or through USE database_name).
If no database is currently selected as default, DATABASE() returns NULL.
$ mysql
Welcome to the MySQL monitor.  Commands [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Function name:</strong> <tt>DATABASE()</tt><br />
<strong>Aliases:</strong> <tt>-</tt><br />
<strong>Function type:</strong> Information function<strong> </strong><br />
<strong> Purpose:</strong> Return the name of the current database</p>
<p> <a href="http://www.bitbybit.dk/carsten/blog/?p=201#more-201" class="more-link">(more&#8230;)</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.bitbybit.dk/carsten/blog/?feed=rss2&amp;p=201</wfw:commentRss>
		</item>
		<item>
		<title>MySQL Function of the Day: Week Seven</title>
		<link>http://www.bitbybit.dk/carsten/blog/?p=200</link>
		<comments>http://www.bitbybit.dk/carsten/blog/?p=200#comments</comments>
		<pubDate>Mon, 28 Apr 2008 21:28:46 +0000</pubDate>
		<dc:creator>Carsten</dc:creator>
		
		<category><![CDATA[MySQL]]></category>

		<category><![CDATA[MySQL Function of the day]]></category>

		<guid isPermaLink="false">http://www.bitbybit.dk/carsten/blog/?p=200</guid>
		<description><![CDATA[The weekly run-down of MFotD
(See this post for background information on MySQL Function of the Day)
Week Seven:

Monday, April 21st, 2008: ROUND() 
Tuesday, April 22nd, 2008: TRUNCATE
Wednesday, April 23rd, 2008: LOG()



Week Six:

Monday, April 14th 2008:REVERSE()
Tuesday, April 15th 2008: CEILING()
Wednesday, April 16 2008: BENCHMARK()
Thursday, April 17 2008: MD5()
Friday, April 18 2008: CRC32()

Week Five:

Monday, April 7th, 2008: DATE_ADD()
Tuesday, [...]]]></description>
			<content:encoded><![CDATA[<p>The weekly run-down of MFotD</p>
<p align="left">(See <a href="http://www.bitbybit.dk/carsten/blog/?p=146">this post</a> for background information on MySQL Function of the Day)</p>
<p align="left">Week Seven:</p>
<ul>
<li>Monday, April 21st, 2008: <a title="Permanent Link to ROUND() :: MySQL Function of the Day" rel="bookmark" href="../?p=194">ROUND()</a> <!--post time--></li>
<li>Tuesday, April 22nd, 2008: <a title="Permanent Link to TRUNCATE :: MySQL Function of the Day" rel="bookmark" href="../?p=195">TRUNCATE</a><!--post time--></li>
<li>Wednesday, April 23rd, 2008<a title="Permanent Link to LOG() :: MySQL Function of the Day" rel="bookmark" href="../?p=198">: LOG()</a></li>
</ul>
<p><!--post time--></p>
<p align="left">
<p> <a href="http://www.bitbybit.dk/carsten/blog/?p=200#more-200" class="more-link">(more&#8230;)</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.bitbybit.dk/carsten/blog/?feed=rss2&amp;p=200</wfw:commentRss>
		</item>
		<item>
		<title>ENCODE() :: MySQL Function of the Day</title>
		<link>http://www.bitbybit.dk/carsten/blog/?p=199</link>
		<comments>http://www.bitbybit.dk/carsten/blog/?p=199#comments</comments>
		<pubDate>Mon, 28 Apr 2008 19:27:25 +0000</pubDate>
		<dc:creator>Carsten</dc:creator>
		
		<category><![CDATA[MySQL Function of the day]]></category>

		<guid isPermaLink="false">http://www.bitbybit.dk/carsten/blog/?p=199</guid>
		<description><![CDATA[Function name: ENCODE
Aliases: -
Function type: Encryption function
 Purpose: Encrypt a string using a password
Description: ENCODE(&#8217;bitbybit.dk&#8217;, &#8216;bIgS3cR3t&#8217;) returns &#8220;bIQu/AJkKCHU2&#8243;, which is the encryption of the string &#8216;bitbybit&#8217; using the password &#8216;bIgS3cR3t&#8217;.
To decrypt the string, use DECODE:
mysql&#62; select DECODE('bIQu/AJkKCHU2', 'bIgS3cR3t');
+---------------------------------------------------+
&#124; DECODE('bIQu/AJkKCHU2', 'bIgS3cR3t') &#124;
+---------------------------------------------------+
&#124; bitbybit.dk                                       &#124;
+---------------------------------------------------+
1 row in set (0.00 sec)
If you copy-pasted any of the above, it [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Function name:</strong> <tt>ENCODE</tt><br />
<strong>Aliases:</strong> <tt>-</tt><br />
<strong>Function type: </strong>Encryption function<br />
<strong> Purpose:</strong> Encrypt a string using a password</p>
<p> <a href="http://www.bitbybit.dk/carsten/blog/?p=199#more-199" class="more-link">(more&#8230;)</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.bitbybit.dk/carsten/blog/?feed=rss2&amp;p=199</wfw:commentRss>
		</item>
		<item>
		<title>LOG() :: MySQL Function of the Day</title>
		<link>http://www.bitbybit.dk/carsten/blog/?p=198</link>
		<comments>http://www.bitbybit.dk/carsten/blog/?p=198#comments</comments>
		<pubDate>Wed, 23 Apr 2008 07:51:09 +0000</pubDate>
		<dc:creator>Carsten</dc:creator>
		
		<category><![CDATA[MySQL Function of the day]]></category>

		<guid isPermaLink="false">http://www.bitbybit.dk/carsten/blog/?p=198</guid>
		<description><![CDATA[Function name: LOG()
Aliases: (LN, LOG2, LOG10)
Function type: Numerical function
 Purpose: Return the logarithm of a number
Description: LOG(x) returns the natural logarithm of x. LOG(y, x) returns the logarithm of x for base y. So LOG(8) returns 2.079, and LOG(2, 8 ) returns 3. Both arguments may be any integer, decimal or floating-point number greater than [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Function name:</strong> <tt>LOG()</tt><br />
<strong>Aliases:</strong> <tt>(LN, LOG2, LOG10)</tt><br />
<strong>Function type: </strong>Numerical function<br />
<strong> Purpose:</strong> Return the logarithm of a number</p>
<p> <a href="http://www.bitbybit.dk/carsten/blog/?p=198#more-198" class="more-link">(more&#8230;)</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.bitbybit.dk/carsten/blog/?feed=rss2&amp;p=198</wfw:commentRss>
		</item>
		<item>
		<title>TRUNCATE :: MySQL Function of the Day</title>
		<link>http://www.bitbybit.dk/carsten/blog/?p=195</link>
		<comments>http://www.bitbybit.dk/carsten/blog/?p=195#comments</comments>
		<pubDate>Tue, 22 Apr 2008 07:04:08 +0000</pubDate>
		<dc:creator>Carsten</dc:creator>
		
		<category><![CDATA[MySQL Function of the day]]></category>

		<guid isPermaLink="false">http://www.bitbybit.dk/carsten/blog/?p=195</guid>
		<description><![CDATA[Function name: TRUNCATE
Aliases: -
Function type: Numerical function 
 Purpose: Round a number toward zero
Description: TRUNCATE() works almost, but not quite, like ROUND(), which was discussed yesterday. Firstly, the second parameter is never optional. Secondly, TRUNCATE() always rounds toward 0 and does so by chopping off decimals, without consideration as to what constitutes the &#8220;nearest&#8221; rounded [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Function name:</strong> <tt>TRUNCATE</tt><br />
<strong>Aliases:</strong> <tt>-</tt><br />
<strong>Function type:</strong> Numerical function<strong> </strong><br />
<strong> Purpose:</strong> Round a number toward zero</p>
<p> <a href="http://www.bitbybit.dk/carsten/blog/?p=195#more-195" class="more-link">(more&#8230;)</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.bitbybit.dk/carsten/blog/?feed=rss2&amp;p=195</wfw:commentRss>
		</item>
		<item>
		<title>ROUND() :: MySQL Function of the Day</title>
		<link>http://www.bitbybit.dk/carsten/blog/?p=194</link>
		<comments>http://www.bitbybit.dk/carsten/blog/?p=194#comments</comments>
		<pubDate>Mon, 21 Apr 2008 12:27:43 +0000</pubDate>
		<dc:creator>Carsten</dc:creator>
		
		<category><![CDATA[MySQL Function of the day]]></category>

		<guid isPermaLink="false">http://www.bitbybit.dk/carsten/blog/?p=194</guid>
		<description><![CDATA[Function name: ROUND
Aliases: -
Function type: Numerical function
 Purpose: Round a number to a certain number of decimal places
Description: MySQLs ROUND() is an extremely versatile implementation of rounding functions wrapped into one single function. To wit:

round(123.456): 123 # as you would expect
round(123.456, 0): 123 # 2nd argument defaults to 0 anyway
round(123.456, 2): 123.46 # 2nd argument [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Function name:</strong> <tt>ROUND</tt><br />
<strong>Aliases:</strong> <tt>-</tt><br />
<strong>Function type: </strong>Numerical function<br />
<strong> Purpose: </strong>Round a number to a certain number of decimal places</p>
<p><strong>Description:</strong> MySQLs <tt>ROUND()</tt> is an extremely versatile implementation of rounding functions wrapped into one single function. To wit:</p>
<p> <a href="http://www.bitbybit.dk/carsten/blog/?p=194#more-194" class="more-link">(more&#8230;)</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.bitbybit.dk/carsten/blog/?feed=rss2&amp;p=194</wfw:commentRss>
		</item>
		<item>
		<title>MySQL Function of the Day: Week Six</title>
		<link>http://www.bitbybit.dk/carsten/blog/?p=193</link>
		<comments>http://www.bitbybit.dk/carsten/blog/?p=193#comments</comments>
		<pubDate>Mon, 21 Apr 2008 10:14:32 +0000</pubDate>
		<dc:creator>Carsten</dc:creator>
		
		<category><![CDATA[MySQL]]></category>

		<category><![CDATA[MySQL Function of the day]]></category>

		<guid isPermaLink="false">http://www.bitbybit.dk/carsten/blog/?p=193</guid>
		<description><![CDATA[The weekly run-down of MFotD
(See this post for background information on MySQL Function of the Day)
Week Six:

Monday, April 14th 2008:REVERSE()
Tuesday, April 15th 2008: CEILING()
Wednesday, April 16 2008: BENCHMARK()
Thursday, April 17 2008: MD5()
Friday, April 18 2008: CRC32()


Week Five:

Monday, April 7th, 2008: DATE_ADD()
Tuesday, April 8th, 2008: IFNULL

Week Four

Wednesday, March 26th, 2008: FORMAT()
Thursday, March 27th, 2008: BINARY
Friday, March [...]]]></description>
			<content:encoded><![CDATA[<p>The weekly run-down of MFotD</p>
<p align="left">(See <a href="http://www.bitbybit.dk/carsten/blog/?p=146">this post</a> for background information on MySQL Function of the Day)</p>
<p align="left">Week Six:</p>
<ul>
<li>Monday, April 14th 2008:<a title="Permanent Link to REVERSE() :: MySQL Function of the Day" rel="bookmark" href="http://www.bitbybit.dk/carsten/blog/?p=185">REVERSE()</a></li>
<li>Tuesday, April 15th 2008: <a title="Permanent Link to CEILING() :: MySQL Function of the Day" rel="bookmark" href="http://www.bitbybit.dk/carsten/blog/?p=184">CEILING()</a></li>
<li>Wednesday, April 16 2008: <a title="Permanent Link to BENCHMARK() :: MySQL Function of the Day" rel="bookmark" href="http://www.bitbybit.dk/carsten/blog/?p=189">BENCHMARK()</a></li>
<li>Thursday, April 17 2008: <a title="Permanent Link to MD5() :: MySQL Function of the Day" rel="bookmark" href="http://www.bitbybit.dk/carsten/blog/?p=190">MD5()</a></li>
<li>Friday, April 18 2008: <a title="Permanent Link to CRC32 :: MySQL Function of the Day" rel="bookmark" href="http://www.bitbybit.dk/carsten/blog/?p=191">CRC32()</a></li>
</ul>
<p> <a href="http://www.bitbybit.dk/carsten/blog/?p=193#more-193" class="more-link">(more&#8230;)</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.bitbybit.dk/carsten/blog/?feed=rss2&amp;p=193</wfw:commentRss>
		</item>
		<item>
		<title>CRC32 :: MySQL Function of the Day</title>
		<link>http://www.bitbybit.dk/carsten/blog/?p=191</link>
		<comments>http://www.bitbybit.dk/carsten/blog/?p=191#comments</comments>
		<pubDate>Fri, 18 Apr 2008 08:03:23 +0000</pubDate>
		<dc:creator>Carsten</dc:creator>
		
		<category><![CDATA[MySQL Function of the day]]></category>

		<guid isPermaLink="false">http://www.bitbybit.dk/carsten/blog/?p=191</guid>
		<description><![CDATA[Function name: CRC32
Aliases: -
Function type: Numerical function
 Purpose: Return a Cyclic Redundancy Check value of a string
Description: CRC32() computes a &#8220;cyclic redundancy check&#8221; value of the input string. It may be used in many of the same places as MD5() (which we discussed yesterday). Historically, CRC has been used to detect noise in transmission signals, [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Function name:</strong> <tt>CRC32</tt><br />
<strong>Aliases:</strong> <tt>-</tt><br />
<strong>Function type: </strong>Numerical function<br />
<strong> Purpose:</strong> Return a Cyclic Redundancy Check value of a string</p>
<p> <a href="http://www.bitbybit.dk/carsten/blog/?p=191#more-191" class="more-link">(more&#8230;)</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.bitbybit.dk/carsten/blog/?feed=rss2&amp;p=191</wfw:commentRss>
		</item>
		<item>
		<title>MD5() :: MySQL Function of the Day</title>
		<link>http://www.bitbybit.dk/carsten/blog/?p=190</link>
		<comments>http://www.bitbybit.dk/carsten/blog/?p=190#comments</comments>
		<pubDate>Thu, 17 Apr 2008 08:02:35 +0000</pubDate>
		<dc:creator>Carsten</dc:creator>
		
		<category><![CDATA[MySQL Function of the day]]></category>

		<guid isPermaLink="false">http://www.bitbybit.dk/carsten/blog/?p=190</guid>
		<description><![CDATA[Function name: MD5()
Aliases: -
Function type: Encryption/compression function
 Purpose: Return the MD5 Message-Digest of a string
Description: MD5() returns a 128-bit (encoded as 32 hex characters) value with a checksum for a string of arbitrary length:
MD5(&#8217;bitbybit&#8217;): 1e8ef91030bafc87a6491dd641c859ab
MD5(&#8217;bitBybit&#8217;): a6236c6a6a7cff46e9e5f5f18acc1472
This algorithm is often used to produce checksums for both large and small pieces of data, since it&#8217;s very hard [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Function name:</strong> <tt>MD5()</tt><br />
<strong>Aliases:</strong> <tt>-</tt><br />
<strong>Function type: </strong>Encryption/compression function<br />
<strong> Purpose:</strong> Return the MD5 Message-Digest of a string</p>
<p> <a href="http://www.bitbybit.dk/carsten/blog/?p=190#more-190" class="more-link">(more&#8230;)</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.bitbybit.dk/carsten/blog/?feed=rss2&amp;p=190</wfw:commentRss>
		</item>
		<item>
		<title>BENCHMARK() :: MySQL Function of the Day</title>
		<link>http://www.bitbybit.dk/carsten/blog/?p=189</link>
		<comments>http://www.bitbybit.dk/carsten/blog/?p=189#comments</comments>
		<pubDate>Wed, 16 Apr 2008 08:06:53 +0000</pubDate>
		<dc:creator>Carsten</dc:creator>
		
		<category><![CDATA[MySQL Function of the day]]></category>

		<guid isPermaLink="false">http://www.bitbybit.dk/carsten/blog/?p=189</guid>
		<description><![CDATA[unction name: BENCHMARK()
Aliases: -
Function type: Information Function
 Purpose: Repeat an operation a number of times
Description: BENCHMARK(multiplier, operation) executes operation multiplier times:
mysql&#62; select BENCHMARK(100000, MD5(&#8217;bitbybit&#8217;));
+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;+
&#124; benchmark(100000, md5(&#8217;bitbybit&#8217;)) &#124;
+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;+
&#124;                             [...]]]></description>
			<content:encoded><![CDATA[<p><strong>unction name:</strong> <tt>BENCHMARK()</tt><br />
<strong>Aliases:</strong> <tt>-</tt><br />
<strong>Function type: </strong>Information Function<br />
<strong> Purpose: </strong>Repeat an operation a number of times</p>
<p> <a href="http://www.bitbybit.dk/carsten/blog/?p=189#more-189" class="more-link">(more&#8230;)</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.bitbybit.dk/carsten/blog/?feed=rss2&amp;p=189</wfw:commentRss>
		</item>
	</channel>
</rss>
