<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: MySQL 排序兩個欄位的方法 (使用IF)</title>
	<atom:link href="http://blog.roga.tw/2009/06/04/2213/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.roga.tw/2009/06/04/2213</link>
	<description>永遠比妳還任性</description>
	<lastBuildDate>Thu, 29 Jul 2010 02:39:03 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1-alpha</generator>
	<item>
		<title>By: kong0107</title>
		<link>http://blog.roga.tw/2009/06/04/2213#comment-3136</link>
		<dc:creator>kong0107</dc:creator>
		<pubDate>Tue, 19 Jan 2010 08:57:03 +0000</pubDate>
		<guid isPermaLink="false">http://blog.roga.tw/?p=2213#comment-3136</guid>
		<description>關於討論區排序的指令，在下有不同作法：
當有新文章時，就將REPLY_TIME也設為NOW()
這樣一來就只需要ORDER BY REPLAY_TIME DESC

而如果需要找出「未被回覆」的文章，可以用WHERE REPLY_TIME = `TIME`
或是另外有一個欄位來儲存回覆數量

不過，這樣REPLY_TIME可能就不符合字面上的意思了，或許可以更名為LAST_EDIT</description>
		<content:encoded><![CDATA[<p>關於討論區排序的指令，在下有不同作法：<br />
當有新文章時，就將REPLY_TIME也設為NOW()<br />
這樣一來就只需要ORDER BY REPLAY_TIME DESC</p>
<p>而如果需要找出「未被回覆」的文章，可以用WHERE REPLY_TIME = `TIME`<br />
或是另外有一個欄位來儲存回覆數量</p>
<p>不過，這樣REPLY_TIME可能就不符合字面上的意思了，或許可以更名為LAST_EDIT</p>
]]></content:encoded>
	</item>
</channel>
</rss>
