<?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/1566/</link>
<title><![CDATA[mysql中使用union all的order by的问题]]></title> 
<author>jack &lt;xdy108@126.com&gt;</author>
<category><![CDATA[WEB2.0]]></category>
<pubDate>Mon, 05 Jan 2009 08:03:04 +0000</pubDate> 
<guid>http://www.jackxiang.com/post/1566/</guid> 
<description>
<![CDATA[ 
	&nbsp;&nbsp;&nbsp;&nbsp; 以前做东西遇到了union all的问题，因为这个只有mysql的高版本才有，所以很少用到，<br/>在orderby的时候总是出现问题原来的语句是这样的<br/><div class="code">select * from(<br/>SELECT *<br/>FROM news<br/>WHERE screatedate &gt; &#039;2007-06-30&#039;<br/>order BY typeid<br/>)<br/>UNION ALL select * from(<br/>SELECT *<br/>FROM news<br/>WHERE screatedate &lt;= &#039;2007-06-30&#039;<br/>order BY screatedate desc<br/>)</div><br/>不管怎么搞里面的order by都不起作用，最后查了相关问题，才知道问题的所在<br/>正确的代码应该如下：<br/><div class="code"><br/>select * from(<br/>SELECT *<br/>FROM news<br/>WHERE screatedate &gt; &#039;2007-06-30&#039;<br/>order BY typeid<br/>) as temp1<br/>UNION ALL select * from(<br/>SELECT *<br/>FROM news<br/>WHERE screatedate &lt;= &#039;2007-06-30&#039;<br/>order BY screatedate desc<br/>)as temp2</div><br/>最后终于成功了，现在贴出来，供大家参考
]]>
</description>
</item><item>
<link>http://www.jackxiang.com/post/1566/#blogcomment51483</link>
<title><![CDATA[[评论] mysql中使用union all的order by的问题]]></title> 
<author>扬漾 &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 29 Oct 2009 09:47:40 +0000</pubDate> 
<guid>http://www.jackxiang.com/post/1566/#blogcomment51483</guid> 
<description>
<![CDATA[ 
	,,真是帮了忙啊,,,
]]>
</description>
</item>
</channel>
</rss>