<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: MySQL: Number + NULL = NULL</title>
	<atom:link href="http://www.rustyrazorblade.com/2006/09/mysql-number-null-null/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.rustyrazorblade.com/2006/09/mysql-number-null-null/</link>
	<description>Tech Thoughts, Mostly on LAMP - by Jon Haddad</description>
	<lastBuildDate>Thu, 22 Jul 2010 09:10:54 -0700</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Jihad</title>
		<link>http://www.rustyrazorblade.com/2006/09/mysql-number-null-null/comment-page-1/#comment-18438</link>
		<dc:creator>Jihad</dc:creator>
		<pubDate>Fri, 11 Apr 2008 22:38:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.rustyrazorblade.com/index.php/2006/09/20/mysql-number-null-null/#comment-18438</guid>
		<description>Very helpful, thanks a lot</description>
		<content:encoded><![CDATA[<p>Very helpful, thanks a lot</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stabbquadd</title>
		<link>http://www.rustyrazorblade.com/2006/09/mysql-number-null-null/comment-page-1/#comment-9029</link>
		<dc:creator>Stabbquadd</dc:creator>
		<pubDate>Mon, 16 Jul 2007 17:17:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.rustyrazorblade.com/index.php/2006/09/20/mysql-number-null-null/#comment-9029</guid>
		<description>Thanx for writting this, you nearly saved my ass !</description>
		<content:encoded><![CDATA[<p>Thanx for writting this, you nearly saved my ass !</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JTW</title>
		<link>http://www.rustyrazorblade.com/2006/09/mysql-number-null-null/comment-page-1/#comment-7729</link>
		<dc:creator>JTW</dc:creator>
		<pubDate>Fri, 08 Jun 2007 14:19:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.rustyrazorblade.com/index.php/2006/09/20/mysql-number-null-null/#comment-7729</guid>
		<description>1. some expressions like GREATEST() return different results on different versions of MySQL. 

SELECT GREATEST(0,NULL); returns 0 on 4.1 and NULL on 5.0. 


2. to CONCAT with NULL values, use CONCAT_WS(&#039;&#039;, ...). The first parameter is a delimiter and in this case, it&#039;s just an empty string.</description>
		<content:encoded><![CDATA[<p>1. some expressions like GREATEST() return different results on different versions of MySQL. </p>
<p>SELECT GREATEST(0,NULL); returns 0 on 4.1 and NULL on 5.0. </p>
<p>2. to CONCAT with NULL values, use CONCAT_WS(&#8221;, &#8230;). The first parameter is a delimiter and in this case, it&#8217;s just an empty string.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Julius</title>
		<link>http://www.rustyrazorblade.com/2006/09/mysql-number-null-null/comment-page-1/#comment-5268</link>
		<dc:creator>Julius</dc:creator>
		<pubDate>Sun, 06 May 2007 13:11:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.rustyrazorblade.com/index.php/2006/09/20/mysql-number-null-null/#comment-5268</guid>
		<description>Just spend almost an hour trying to figure out what to do in case my subquery returned null - found your IFNULL() solution on google, and it solves my problem perfectly! Thanks :-)</description>
		<content:encoded><![CDATA[<p>Just spend almost an hour trying to figure out what to do in case my subquery returned null &#8211; found your IFNULL() solution on google, and it solves my problem perfectly! Thanks <img src='http://www.rustyrazorblade.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark</title>
		<link>http://www.rustyrazorblade.com/2006/09/mysql-number-null-null/comment-page-1/#comment-4469</link>
		<dc:creator>Mark</dc:creator>
		<pubDate>Wed, 14 Mar 2007 20:37:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.rustyrazorblade.com/index.php/2006/09/20/mysql-number-null-null/#comment-4469</guid>
		<description>Thanks for this. I was having the same problem. Maybe should have realized it, but it makes me feel good that I&#039;m the first to be bit.  Also Xaprb, thanks for COALESCE() - I never really understood what it would be good for.</description>
		<content:encoded><![CDATA[<p>Thanks for this. I was having the same problem. Maybe should have realized it, but it makes me feel good that I&#8217;m the first to be bit.  Also Xaprb, thanks for COALESCE() &#8211; I never really understood what it would be good for.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: IJay</title>
		<link>http://www.rustyrazorblade.com/2006/09/mysql-number-null-null/comment-page-1/#comment-4053</link>
		<dc:creator>IJay</dc:creator>
		<pubDate>Wed, 21 Feb 2007 02:47:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.rustyrazorblade.com/index.php/2006/09/20/mysql-number-null-null/#comment-4053</guid>
		<description>Just found this in Google. Thank you for that article. I just wish I would have found this earlier. Would have saved me some hours. I had the same problem  (&quot;Why the heck is 10 + NULL not 10?&quot;). Now I&#039;ve got a good solution. Thanks.</description>
		<content:encoded><![CDATA[<p>Just found this in Google. Thank you for that article. I just wish I would have found this earlier. Would have saved me some hours. I had the same problem  (&#8221;Why the heck is 10 + NULL not 10?&#8221;). Now I&#8217;ve got a good solution. Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brandon Drury</title>
		<link>http://www.rustyrazorblade.com/2006/09/mysql-number-null-null/comment-page-1/#comment-1780</link>
		<dc:creator>Brandon Drury</dc:creator>
		<pubDate>Thu, 30 Nov 2006 19:51:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.rustyrazorblade.com/index.php/2006/09/20/mysql-number-null-null/#comment-1780</guid>
		<description>It appears that NULL does not work this way in PHP, however.

</description>
		<content:encoded><![CDATA[<p>It appears that NULL does not work this way in PHP, however.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jon</title>
		<link>http://www.rustyrazorblade.com/2006/09/mysql-number-null-null/comment-page-1/#comment-31</link>
		<dc:creator>jon</dc:creator>
		<pubDate>Fri, 22 Sep 2006 03:08:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.rustyrazorblade.com/index.php/2006/09/20/mysql-number-null-null/#comment-31</guid>
		<description>And sheeri, you are wrong anyway.

mysql&gt; select concat(4,5);
+-------------+
&#124; concat(4,5) &#124;
+-------------+
&#124; 45          &#124; 
+-------------+</description>
		<content:encoded><![CDATA[<p>And sheeri, you are wrong anyway.</p>
<p>mysql> select concat(4,5);<br />
+&#8212;&#8212;&#8212;&#8212;-+<br />
| concat(4,5) |<br />
+&#8212;&#8212;&#8212;&#8212;-+<br />
| 45          |<br />
+&#8212;&#8212;&#8212;&#8212;-+</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jon</title>
		<link>http://www.rustyrazorblade.com/2006/09/mysql-number-null-null/comment-page-1/#comment-29</link>
		<dc:creator>jon</dc:creator>
		<pubDate>Fri, 22 Sep 2006 01:18:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.rustyrazorblade.com/index.php/2006/09/20/mysql-number-null-null/#comment-29</guid>
		<description>Sheeri: Mine is a practical real world example.  I realize that there can be multiple solutions to a given problem.  Thanks.</description>
		<content:encoded><![CDATA[<p>Sheeri: Mine is a practical real world example.  I realize that there can be multiple solutions to a given problem.  Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sheeri</title>
		<link>http://www.rustyrazorblade.com/2006/09/mysql-number-null-null/comment-page-1/#comment-28</link>
		<dc:creator>Sheeri</dc:creator>
		<pubDate>Fri, 22 Sep 2006 01:07:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.rustyrazorblade.com/index.php/2006/09/20/mysql-number-null-null/#comment-28</guid>
		<description>1)  CONCAT has the same functionality
2) You do not need a table to demonstrate either point


mysql&gt; select 1+NULL+1;
+----------+
&#124; 1+NULL+1 &#124;
+----------+
&#124; NULL     &#124;
+----------+
1 row in set (0.00 sec)

mysql&gt; select concat(&#039;a&#039;,&#039;b&#039;);
+-----------------+
&#124; concat(&#039;a&#039;,&#039;b&#039;) &#124;
+-----------------+
&#124; ab              &#124;
+-----------------+
1 row in set (0.00 sec)

mysql&gt; select concat(&#039;a&#039;,NULL,&#039;b&#039;);
+----------------------+
&#124; concat(&#039;a&#039;,NULL,&#039;b&#039;) &#124;
+----------------------+
&#124;                      &#124;
+----------------------+
1 row in set (0.00 sec)</description>
		<content:encoded><![CDATA[<p>1)  CONCAT has the same functionality<br />
2) You do not need a table to demonstrate either point</p>
<p>mysql&gt; select 1+NULL+1;<br />
+&#8212;&#8212;&#8212;-+<br />
| 1+NULL+1 |<br />
+&#8212;&#8212;&#8212;-+<br />
| NULL     |<br />
+&#8212;&#8212;&#8212;-+<br />
1 row in set (0.00 sec)</p>
<p>mysql&gt; select concat(&#8217;a',&#8217;b');<br />
+&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;+<br />
| concat(&#8217;a',&#8217;b') |<br />
+&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;+<br />
| ab              |<br />
+&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;+<br />
1 row in set (0.00 sec)</p>
<p>mysql&gt; select concat(&#8217;a',NULL,&#8217;b');<br />
+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-+<br />
| concat(&#8217;a',NULL,&#8217;b') |<br />
+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-+<br />
|                      |<br />
+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-+<br />
1 row in set (0.00 sec)</p>
]]></content:encoded>
	</item>
</channel>
</rss>
