<?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: Updating Substring in Column in MySQL</title>
	<atom:link href="http://www.wombatnation.com/2008/07/updating-substring-in-column-in-mysql/feed" rel="self" type="application/rss+xml" />
	<link>http://www.wombatnation.com/2008/07/updating-substring-in-column-in-mysql</link>
	<description>Speech Applications, MySQL, Python, Soccer, Java, Beer and Incinerating Toilets</description>
	<lastBuildDate>Thu, 26 Jan 2012 10:45:01 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Kees Epema</title>
		<link>http://www.wombatnation.com/2008/07/updating-substring-in-column-in-mysql/comment-page-1#comment-111758</link>
		<dc:creator>Kees Epema</dc:creator>
		<pubDate>Thu, 05 Aug 2010 17:03:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.wombatnation.com/?p=572#comment-111758</guid>
		<description>&lt;p&gt;I had one table where the column col contained 17 characters. I had to update the character on the 14th position in that field. When the 14th position contained a &#039;1&#039;, it should update to &#039;0&#039;
This statement worked, thanks to the replace mysql attention in your article, it works like a charm.
Thanks a bunch!&lt;/p&gt;

&lt;p&gt;UPDATE &lt;code&gt;tbl SET&lt;/code&gt;col&lt;code&gt;= REPLACE(&lt;/code&gt;col&lt;code&gt;, &#039;1&#039;, &#039;0&#039;) WHERE substr(&lt;/code&gt;col`,14,1) = &#039;1&#039;&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I had one table where the column col contained 17 characters. I had to update the character on the 14th position in that field. When the 14th position contained a &#8217;1&#8242;, it should update to &#8217;0&#8242;
This statement worked, thanks to the replace mysql attention in your article, it works like a charm.
Thanks a bunch!</p>

<p>UPDATE <code>tbl SET</code>col<code>= REPLACE(</code>col<code>, '1', '0') WHERE substr(</code>col`,14,1) = &#8217;1&#8242;</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Jaymie</title>
		<link>http://www.wombatnation.com/2008/07/updating-substring-in-column-in-mysql/comment-page-1#comment-111736</link>
		<dc:creator>Jaymie</dc:creator>
		<pubDate>Sun, 30 May 2010 20:31:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.wombatnation.com/?p=572#comment-111736</guid>
		<description>&lt;p&gt;Thanks for posting this - I had a problem with my Drupal 5 installation, where I&#039;d inadvertently copied a modules folder &lt;strong&gt;into&lt;/strong&gt; my existing modules folder, and the system table got updated with these references.&lt;/p&gt;

&lt;p&gt;Anyway, this code allowed me to delete the nested folder and update the references correctly.  Thank you.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Thanks for posting this &#8211; I had a problem with my Drupal 5 installation, where I&#8217;d inadvertently copied a modules folder <strong>into</strong> my existing modules folder, and the system table got updated with these references.</p>

<p>Anyway, this code allowed me to delete the nested folder and update the references correctly.  Thank you.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Amin007</title>
		<link>http://www.wombatnation.com/2008/07/updating-substring-in-column-in-mysql/comment-page-1#comment-111670</link>
		<dc:creator>Amin007</dc:creator>
		<pubDate>Thu, 11 Mar 2010 09:00:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.wombatnation.com/?p=572#comment-111670</guid>
		<description>&lt;p&gt;well, this function REPLACE(str,from_str,to_str)
is very cool hehehe :D
if not i think i must use excel to replace huhuhu&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>well, this function REPLACE(str,from_str,to_str)
is very cool hehehe <img src='http://wombatnation.com/w/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> 
if not i think i must use excel to replace huhuhu</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Nixhit</title>
		<link>http://www.wombatnation.com/2008/07/updating-substring-in-column-in-mysql/comment-page-1#comment-111004</link>
		<dc:creator>Nixhit</dc:creator>
		<pubDate>Mon, 06 Oct 2008 20:16:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.wombatnation.com/?p=572#comment-111004</guid>
		<description>&lt;p&gt;Thanks this saved my ass.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Thanks this saved my ass.</p>]]></content:encoded>
	</item>
</channel>
</rss>

