<?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: Writing SQL for both MySQL and DB2</title>
	<atom:link href="http://krook.net/sql-for-mysql-and-db2/feed" rel="self" type="application/rss+xml" />
	<link>http://krook.net</link>
	<description>Daniel Krook is an IBM Certified IT Specialist based in Armonk, New York.  He has over 10 years experience in Web site development and presently builds integrated applications on WebSphere and DB2 along with Apache, MySQL, and PHP for ibm.com and the intranet.  He holds certifications in PHP (ZCE), Java (SCJP, SCWCD), DB2 (ICDAssoc., ICAD), and Solaris (SCSA).  He occasionally writes PHP-related articles for IBM developerWorks and co-authored the IBM Redbook 'Developing PHP Applications for IBM Data Servers.'  His current interests include RESTful Web services and mobile application development for smartphones.</description>
	<lastBuildDate>Fri, 05 Mar 2010 17:50:56 -0500</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Jim</title>
		<link>http://krook.net/sql-for-mysql-and-db2/comment-page-1#comment-75495</link>
		<dc:creator>Jim</dc:creator>
		<pubDate>Thu, 13 Aug 2009 15:50:58 +0000</pubDate>
		<guid isPermaLink="false">http://krook.net/sql-for-mysql-and-db2/#comment-75495</guid>
		<description>When working with dates, the odds are pretty good that you will need access to today&#039;s date. I have several books and have looked all over the IBM site, finally I have found the correct statement to access the current date. Thank you for publishing what should be so much easier to find.</description>
		<content:encoded><![CDATA[<p>When working with dates, the odds are pretty good that you will need access to today&#8217;s date. I have several books and have looked all over the IBM site, finally I have found the correct statement to access the current date. Thank you for publishing what should be so much easier to find.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mini</title>
		<link>http://krook.net/sql-for-mysql-and-db2/comment-page-1#comment-61347</link>
		<dc:creator>Mini</dc:creator>
		<pubDate>Sat, 06 Dec 2008 13:56:08 +0000</pubDate>
		<guid isPermaLink="false">http://krook.net/sql-for-mysql-and-db2/#comment-61347</guid>
		<description>hi,
thnx a lot Daniel. this post was really very helpful...thnx a ton! :)</description>
		<content:encoded><![CDATA[<p>hi,<br />
thnx a lot Daniel. this post was really very helpful&#8230;thnx a ton! :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ray</title>
		<link>http://krook.net/sql-for-mysql-and-db2/comment-page-1#comment-34681</link>
		<dc:creator>Ray</dc:creator>
		<pubDate>Fri, 01 Feb 2008 00:11:11 +0000</pubDate>
		<guid isPermaLink="false">http://krook.net/sql-for-mysql-and-db2/#comment-34681</guid>
		<description>Daniel: That&#039;s OK, I was busy too.  

No, I have not contacted IBM.  My thought was that being so new to PHP, that I was making a rookie mistake.  I will send this question on to them now.

Thanks.</description>
		<content:encoded><![CDATA[<p>Daniel: That&#8217;s OK, I was busy too.  </p>
<p>No, I have not contacted IBM.  My thought was that being so new to PHP, that I was making a rookie mistake.  I will send this question on to them now.</p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brock Dulaney</title>
		<link>http://krook.net/sql-for-mysql-and-db2/comment-page-1#comment-34663</link>
		<dc:creator>Brock Dulaney</dc:creator>
		<pubDate>Thu, 31 Jan 2008 20:05:03 +0000</pubDate>
		<guid isPermaLink="false">http://krook.net/sql-for-mysql-and-db2/#comment-34663</guid>
		<description>Great site. Will be bookmarking this as a resource!

-B</description>
		<content:encoded><![CDATA[<p>Great site. Will be bookmarking this as a resource!</p>
<p>-B</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel Krook</title>
		<link>http://krook.net/sql-for-mysql-and-db2/comment-page-1#comment-33108</link>
		<dc:creator>Daniel Krook</dc:creator>
		<pubDate>Fri, 11 Jan 2008 14:26:04 +0000</pubDate>
		<guid isPermaLink="false">http://krook.net/sql-for-mysql-and-db2/#comment-33108</guid>
		<description>Ray,

Sorry for the delayed reply, have you contacted the IBM maintainers of the ibm_db2 PECL extension about this?

http://pecl.php.net/package/ibm_db2</description>
		<content:encoded><![CDATA[<p>Ray,</p>
<p>Sorry for the delayed reply, have you contacted the IBM maintainers of the ibm_db2 PECL extension about this?</p>
<p><a href="http://pecl.php.net/package/ibm_db2" rel="nofollow">http://pecl.php.net/package/ibm_db2</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ray</title>
		<link>http://krook.net/sql-for-mysql-and-db2/comment-page-1#comment-30242</link>
		<dc:creator>Ray</dc:creator>
		<pubDate>Wed, 05 Dec 2007 22:59:09 +0000</pubDate>
		<guid isPermaLink="false">http://krook.net/sql-for-mysql-and-db2/#comment-30242</guid>
		<description>Attempting to insert or update a row in a table for credit cards that has the card number as varchar and expiration date as DATE.  Both may be NULL.  When db2_execute is passed NULL as the parameter as in &quot;expdate = NULL&quot;, I get an SQL0180N error &quot;The syntax of the string representation of a datetime value is incorrect.&quot;    The SQL statement can be cut and pasted into the Command Center and it is valid.  Setting both columns to actual values works so that leaves me wuth the question, How do you set a nullable column to NULL using db2_* functions from PHP ?  I know I can change the string and parameters being passed, but NULL is a valid keyword and it should be processed as such.

Thanks in advance.</description>
		<content:encoded><![CDATA[<p>Attempting to insert or update a row in a table for credit cards that has the card number as varchar and expiration date as DATE.  Both may be NULL.  When db2_execute is passed NULL as the parameter as in &#8220;expdate = NULL&#8221;, I get an SQL0180N error &#8220;The syntax of the string representation of a datetime value is incorrect.&#8221;    The SQL statement can be cut and pasted into the Command Center and it is valid.  Setting both columns to actual values works so that leaves me wuth the question, How do you set a nullable column to NULL using db2_* functions from PHP ?  I know I can change the string and parameters being passed, but NULL is a valid keyword and it should be processed as such.</p>
<p>Thanks in advance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Augustine</title>
		<link>http://krook.net/sql-for-mysql-and-db2/comment-page-1#comment-27909</link>
		<dc:creator>Augustine</dc:creator>
		<pubDate>Sat, 10 Nov 2007 19:07:51 +0000</pubDate>
		<guid isPermaLink="false">http://krook.net/sql-for-mysql-and-db2/#comment-27909</guid>
		<description>hi

This tips on mysql and db2  are very helpful
keep the good job
Thanks.</description>
		<content:encoded><![CDATA[<p>hi</p>
<p>This tips on mysql and db2  are very helpful<br />
keep the good job<br />
Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel Krook</title>
		<link>http://krook.net/sql-for-mysql-and-db2/comment-page-1#comment-22196</link>
		<dc:creator>Daniel Krook</dc:creator>
		<pubDate>Wed, 05 Sep 2007 13:59:52 +0000</pubDate>
		<guid isPermaLink="false">http://krook.net/sql-for-mysql-and-db2/#comment-22196</guid>
		<description>Hi Fakhre,

You have an error in your SQL syntax.    You&#039;re missing a condition after the third LIKE clause: &quot;com.comp_id like [missing ‘%$txtFind%’ here] or&quot;</description>
		<content:encoded><![CDATA[<p>Hi Fakhre,</p>
<p>You have an error in your SQL syntax.    You&#8217;re missing a condition after the third LIKE clause: &#8220;com.comp_id like [missing ‘%$txtFind%’ here] or&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: fakhre</title>
		<link>http://krook.net/sql-for-mysql-and-db2/comment-page-1#comment-22175</link>
		<dc:creator>fakhre</dc:creator>
		<pubDate>Wed, 05 Sep 2007 08:08:08 +0000</pubDate>
		<guid isPermaLink="false">http://krook.net/sql-for-mysql-and-db2/#comment-22175</guid>
		<description>i want to write something like below in php
but infact getting nothing... 
$rsFnd=mysql_query(&quot;SELECT distinct c.category_id, c.category FROM stbl_category c, stbl_company com WHERE (com.company LIKE &#039;%$txtFind%&#039; or com.address like &#039;%$txtFind%&#039; or com.comp_id like or &#039;%$txtFind%&#039; com.keywords like &#039;%$txtFind%&#039; or c.category like &#039;%$txtFind%&#039;) and (com.category_id=c.category_id)&quot;);

can someone please explain me where the problem actually is?
it looks some php syntax error; is it?</description>
		<content:encoded><![CDATA[<p>i want to write something like below in php<br />
but infact getting nothing&#8230;<br />
$rsFnd=mysql_query(&#8221;SELECT distinct c.category_id, c.category FROM stbl_category c, stbl_company com WHERE (com.company LIKE &#8216;%$txtFind%&#8217; or com.address like &#8216;%$txtFind%&#8217; or com.comp_id like or &#8216;%$txtFind%&#8217; com.keywords like &#8216;%$txtFind%&#8217; or c.category like &#8216;%$txtFind%&#8217;) and (com.category_id=c.category_id)&#8221;);</p>
<p>can someone please explain me where the problem actually is?<br />
it looks some php syntax error; is it?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: krook</title>
		<link>http://krook.net/sql-for-mysql-and-db2/comment-page-1#comment-3432</link>
		<dc:creator>krook</dc:creator>
		<pubDate>Fri, 15 Dec 2006 17:07:10 +0000</pubDate>
		<guid isPermaLink="false">http://krook.net/sql-for-mysql-and-db2/#comment-3432</guid>
		<description>Hi Mike,

Yes, that DB2 insert will fail, whereas the MySQL one will succeed with unexpected results. :)</description>
		<content:encoded><![CDATA[<p>Hi Mike,</p>
<p>Yes, that DB2 insert will fail, whereas the MySQL one will succeed with unexpected results. :)</p>
]]></content:encoded>
	</item>
</channel>
</rss>
