<?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>老余 &#187; MySQL</title>
	<atom:link href="http://laoyu.info/archives/tag/mysql/feed" rel="self" type="application/rss+xml" />
	<link>http://laoyu.info</link>
	<description>Dreams are hard to follow,but dont let anyone tear them away!Hold on!</description>
	<lastBuildDate>Thu, 21 Jul 2011 15:51:40 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
		<item>
		<title>[SQL]MySQL正则表达式替换</title>
		<link>http://laoyu.info/archives/14.html</link>
		<comments>http://laoyu.info/archives/14.html#comments</comments>
		<pubDate>Fri, 22 Dec 2006 04:23:52 +0000</pubDate>
		<dc:creator>老余</dc:creator>
				<category><![CDATA[技术·学习]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[正则表达式
替换]]></category>

		<guid isPermaLink="false">http://t263.net/?p=14</guid>
		<description><![CDATA[<div class="postTitle">&#160;</div><div class="postTitle">将comment表中的author_url包含<a href="http://www.sohu.com/"><font color="#6fbc4c">www.sohu.com</font></a>的记录,其中的sohu替换为sina，一个语句搞定~</div><p>update comment set author_url=REPLACE(author_url,'sohu','sina') where author_url REGEXP 'www.sohu.com';</p><p>带IF判断的复杂替换</p><p>update comment set url=IF(url REGEXP 'test.yahoo.com.cn',REPLACE(url,'www1.sohu.com','www.sina.com'),REPLACE(url,'www2.yahoo.com','www.sina.com')) where 1=1; <br /></p>
]]></description>
		<wfw:commentRss>http://laoyu.info/archives/14.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

