<?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; SQL</title>
	<atom:link href="http://www.hugstone.com/index.php/archives/tag/sql/feed" rel="self" type="application/rss+xml" />
	<link>http://www.hugstone.com</link>
	<description>三生石前问一声，人间哪里修正果！</description>
	<lastBuildDate>Thu, 26 Aug 2010 02:57:01 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>SQL字符串连接符</title>
		<link>http://www.hugstone.com/index.php/archives/134</link>
		<comments>http://www.hugstone.com/index.php/archives/134#comments</comments>
		<pubDate>Thu, 05 Feb 2009 01:59:12 +0000</pubDate>
		<dc:creator>stone</dc:creator>
				<category><![CDATA[Note]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false">http://www.hugstone.com/?p=134</guid>
		<description><![CDATA[<p>SQL字符串连接符<br />
在很多情况下我们需将几个字段值连接起来作为一个字符串来输出，这时需用到字符串连接符<br />
在MS SQLSERVER 2K 中的连接符为"+"符号</p>
<p>在Oracle中则为"&#124;&#124;",如<br />
select charge_type_code &#124;&#124; ' ' &#124;&#124; charge_type_name f[......]</p><p class='read-more'><a href='http://www.hugstone.com/index.php/archives/134'>继续阅读</a></p>]]></description>
			<content:encoded><![CDATA[<p>SQL字符串连接符<br />
在很多情况下我们需将几个字段值连接起来作为一个字符串来输出，这时需用到字符串连接符<br />
在MS SQLSERVER 2K 中的连接符为"+"符号</p>
<p>在Oracle中则为"||",如<br />
select charge_type_code || ' ' || charge_type_name from charge_type_dict;<br />
输入结果为：<br />
CHARGE_TYP<br />
----------<br />
1 自费<br />
2 医疗保险<br />
3 商业保险<br />
4 社会保险<br />
5 工伤<br />
6 记帐<br />
7 合同单位<br />
8 长安医保</p>
]]></content:encoded>
			<wfw:commentRss>http://www.hugstone.com/index.php/archives/134/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
