<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>PHP Musings &#187; SQL</title>
	<atom:link href="http://www.charles-reace.com/blog/category/sql/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.charles-reace.com/blog</link>
	<description>Charles Reace&#039;s blog about PHP, MySQL, and life in general</description>
	<lastBuildDate>Mon, 22 Aug 2011 17:16:51 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Insert On Duplicate Key Update and Last_Insert_ID()</title>
		<link>http://www.charles-reace.com/blog/2010/12/06/insert-on-duplicate-key-update-and-last_insert_id/</link>
		<comments>http://www.charles-reace.com/blog/2010/12/06/insert-on-duplicate-key-update-and-last_insert_id/#comments</comments>
		<pubDate>Tue, 07 Dec 2010 03:18:57 +0000</pubDate>
		<dc:creator>Charles</dc:creator>
				<category><![CDATA[SQL]]></category>
		<category><![CDATA[duplicate key]]></category>
		<category><![CDATA[insert_id]]></category>
		<category><![CDATA[replace]]></category>

		<guid isPermaLink="false">http://www.charles-reace.com/blog/?p=309</guid>
		<description><![CDATA[A useful MySQL trick I just learned tonight is using the &#8220;INSERT&#8230;ON DUPLICATE KEY UPDATE&#8221; query syntax along with the LAST_INSERT_ID() function in order to populate the mysql_insert_id() function or the mysqli-&#62;insert_id attribute when the record is a duplicate. At first I had tried using the REPLACE syntax, thinking that would be easier. The problem [...]]]></description>
		<wfw:commentRss>http://www.charles-reace.com/blog/2010/12/06/insert-on-duplicate-key-update-and-last_insert_id/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Book List App: One Query to Rule Them All</title>
		<link>http://www.charles-reace.com/blog/2009/12/10/book-list-app-one-query-to-rule-them-all/</link>
		<comments>http://www.charles-reace.com/blog/2009/12/10/book-list-app-one-query-to-rule-them-all/#comments</comments>
		<pubDate>Thu, 10 Dec 2009 08:58:12 +0000</pubDate>
		<dc:creator>Charles</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[booklist]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[duplicate key]]></category>
		<category><![CDATA[insert]]></category>

		<guid isPermaLink="false">http://www.charles-reace.com/blog/?p=246</guid>
		<description><![CDATA[I got side-tracked from working on this project for awhile, but I am trying to get back to it now. One thing I needed to address was that for many of the database tables I would have situations where a user supplies some data, and if it already exists in the table then I just [...]]]></description>
		<wfw:commentRss>http://www.charles-reace.com/blog/2009/12/10/book-list-app-one-query-to-rule-them-all/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

