<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></title> 
<link>http://www.jackxiang.com/index.php</link> 
<description><![CDATA[赢在IT，Playin' with IT,Focus on Killer Application,Marketing Meets Technology.]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></copyright>
<item>
<link>http://www.jackxiang.com/post//</link>
<title><![CDATA[mysql下distinct多字段查询]]></title> 
<author>jack &lt;xdy108@126.com&gt;</author>
<category><![CDATA[WEB2.0]]></category>
<pubDate>Tue, 19 Oct 2010 02:51:08 +0000</pubDate> 
<guid>http://www.jackxiang.com/post//</guid> 
<description>
<![CDATA[ 
	建立table表：<br/><div class="code">CREATE TABLE `table` (<br/>&nbsp;&nbsp;`ID` tinyint(4) NOT NULL,<br/>&nbsp;&nbsp;`FQQ` varchar(12) NOT NULL,<br/>&nbsp;&nbsp;`FTime` varchar(21) NOT NULL<br/>) ENGINE=MyISAM DEFAULT CHARSET=utf8</div><br/><br/>插入如下数据：<br/>&nbsp;&nbsp;&nbsp;&nbsp;ID&nbsp;&nbsp; FQQ&nbsp;&nbsp; FTime<br/>&nbsp;&nbsp; 1&nbsp;&nbsp; 372647693&nbsp;&nbsp; 2100-11-11<br/>&nbsp;&nbsp; 2&nbsp;&nbsp; 372647693&nbsp;&nbsp; 2100-11-11<br/>&nbsp;&nbsp; 1&nbsp;&nbsp; 372647694&nbsp;&nbsp; 2100-11-12<br/>&nbsp;&nbsp; 2&nbsp;&nbsp; 37264764&nbsp;&nbsp; 2100-11-15<br/><br/>查询如下：<br/><br/><div class="code"> SELECT * , count( DISTINCT FQQ )<br/>FROM `table`<br/>GROUP BY FQQ<br/>LIMIT 0 , 30 </div><br/>查询结果：<br/><br/><div class="code">ID&nbsp;&nbsp; FQQ&nbsp;&nbsp; FTime&nbsp;&nbsp; count(distinct FQQ)<br/>2&nbsp;&nbsp; 37264764&nbsp;&nbsp; 2100-11-15&nbsp;&nbsp; 1<br/>1&nbsp;&nbsp; 372647693&nbsp;&nbsp; 2100-11-11&nbsp;&nbsp; 1<br/>1&nbsp;&nbsp; 372647694&nbsp;&nbsp; 2100-11-12&nbsp;&nbsp; 1</div><br/><br/><br/>退化为：<br/><br/><div class="code">SELECT 641009005 , FQQ, FTime<br/>FROM `table`<br/>GROUP BY FQQ<br/>LIMIT 0 , 30</div><br/><br/><br/>641009005 &nbsp;&nbsp;FQQ &nbsp;&nbsp;FTime<br/><br/>641009005 &nbsp;&nbsp;37264764 &nbsp;&nbsp;2100-11-15<br/>641009005 &nbsp;&nbsp;372647693 &nbsp;&nbsp;2100-11-11<br/>641009005 &nbsp;&nbsp;372647694 &nbsp;&nbsp;2100-11-12
]]>
</description>
</item><item>
<link>http://www.jackxiang.com/post//#blogcomment</link>
<title><![CDATA[[评论] mysql下distinct多字段查询]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>http://www.jackxiang.com/post//#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>