
<?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: Using SQL Replace</title>
	<atom:link href="http://www.razorleaf.com/2009/12/sql-replace/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.razorleaf.com/2009/12/sql-replace/</link>
	<description>Innovative Process Solutions. Bottom-Line Results.</description>
	<lastBuildDate>Fri, 13 Jan 2012 21:29:35 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Sean Kuner</title>
		<link>http://www.razorleaf.com/2009/12/sql-replace/comment-page-1/#comment-140</link>
		<dc:creator>Sean Kuner</dc:creator>
		<pubDate>Mon, 04 Jan 2010 13:42:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.razorleaf.com/?p=5677#comment-140</guid>
		<description>Thank you for your comment, Corey.

You are correct.  The Replace command is a very powerful one, and  with that power comes some responsibility when using it.  Depending on how big the dataset it that you are affecting, it may be possible to run a select query first to see what data is actually being returned my your where clause, so you would first detect examples like you pointed out, where the string you are searching for is also part of other words where you wouldn&#039;t want to include in your changes, and you could then adjust the where clause exclude those cases.</description>
		<content:encoded><![CDATA[<p>Thank you for your comment, Corey.</p>
<p>You are correct.  The Replace command is a very powerful one, and  with that power comes some responsibility when using it.  Depending on how big the dataset it that you are affecting, it may be possible to run a select query first to see what data is actually being returned my your where clause, so you would first detect examples like you pointed out, where the string you are searching for is also part of other words where you wouldn&#8217;t want to include in your changes, and you could then adjust the where clause exclude those cases.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Corey Paugh</title>
		<link>http://www.razorleaf.com/2009/12/sql-replace/comment-page-1/#comment-139</link>
		<dc:creator>Corey Paugh</dc:creator>
		<pubDate>Mon, 04 Jan 2010 12:47:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.razorleaf.com/?p=5677#comment-139</guid>
		<description>You might want to pass on an extra little tip for using the SQL REPLACE command. This command is very destructive if used without proper forethought. For example, if you were to use it to replace the string &#039;cow&#039; with &#039;pizza&#039;, the word &#039;coward&#039; would become &#039;pizzaard&#039;. You may want to use &#039; cow &#039; as your search string. If you need to also get all of the fields that start with &#039;cow&#039;, you should also run another command with &#039;cow &#039; as your search string. Unfortunately, this will affect words that end in &#039;cow&#039; like &#039;Moscow&#039;. This is very important to remember if you are using this command to update Description fields. There are many different words that share common strings. Unfortunately, these mistakes don&#039;t usually show up until later. I only say this because you used the words &#039;globally replace&#039;.</description>
		<content:encoded><![CDATA[<p>You might want to pass on an extra little tip for using the SQL REPLACE command. This command is very destructive if used without proper forethought. For example, if you were to use it to replace the string &#8216;cow&#8217; with &#8216;pizza&#8217;, the word &#8216;coward&#8217; would become &#8216;pizzaard&#8217;. You may want to use &#8216; cow &#8216; as your search string. If you need to also get all of the fields that start with &#8216;cow&#8217;, you should also run another command with &#8216;cow &#8216; as your search string. Unfortunately, this will affect words that end in &#8216;cow&#8217; like &#8216;Moscow&#8217;. This is very important to remember if you are using this command to update Description fields. There are many different words that share common strings. Unfortunately, these mistakes don&#8217;t usually show up until later. I only say this because you used the words &#8216;globally replace&#8217;.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
