<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Sql on kenops</title><link>https://www.kenops.io/tags/sql/</link><description>Recent content in Sql on kenops</description><generator>Hugo</generator><language>en</language><lastBuildDate>Tue, 19 May 2009 15:22:16 +0000</lastBuildDate><atom:link href="https://www.kenops.io/tags/sql/index.xml" rel="self" type="application/rss+xml"/><item><title>mySql search and replace within a field.</title><link>https://www.kenops.io/posts/mysql-search-and-replace-within-a-field/</link><pubDate>Tue, 19 May 2009 15:22:16 +0000</pubDate><guid>https://www.kenops.io/posts/mysql-search-and-replace-within-a-field/</guid><description>&lt;p&gt;When moving wordpress sites from one domain to another, it&amp;rsquo;s common to have hard coded urls in the database of the old web site.  To update the majority of the posts, you can use the following sql statement to update the post urls.  You may also need to run the statement on the guid foild as well.&lt;/p&gt;
&lt;p&gt;UPDATE wp_posts SET post_content = REPLACE(post_content, &amp;lsquo;staging.server.com&amp;rsquo;, &amp;lsquo;&lt;a href="https://www.productionserver.com"&gt;www.productionserver.com&lt;/a&gt;&amp;rsquo;);&lt;/p&gt;</description></item></channel></rss>