<?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随机查询输出数据语句</title>
	<atom:link href="http://www.pkphp.com/2008/07/28/mysql%e9%9a%8f%e6%9c%ba%e6%9f%a5%e8%af%a2%e8%be%93%e5%87%ba%e6%95%b0%e6%8d%ae%e8%af%ad%e5%8f%a5/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.pkphp.com/2008/07/28/mysql%e9%9a%8f%e6%9c%ba%e6%9f%a5%e8%af%a2%e8%be%93%e5%87%ba%e6%95%b0%e6%8d%ae%e8%af%ad%e5%8f%a5/</link>
	<description>PK with php!</description>
	<lastBuildDate>Thu, 03 Mar 2011 02:11:27 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
	<item>
		<title>By: askie</title>
		<link>http://www.pkphp.com/2008/07/28/mysql%e9%9a%8f%e6%9c%ba%e6%9f%a5%e8%af%a2%e8%be%93%e5%87%ba%e6%95%b0%e6%8d%ae%e8%af%ad%e5%8f%a5/comment-page-1/#comment-81</link>
		<dc:creator>askie</dc:creator>
		<pubDate>Wed, 30 Jul 2008 16:47:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.pkphp.com/?p=362#comment-81</guid>
		<description>哈哈！菜了点！</description>
		<content:encoded><![CDATA[<p>哈哈！菜了点！</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Thinkagain</title>
		<link>http://www.pkphp.com/2008/07/28/mysql%e9%9a%8f%e6%9c%ba%e6%9f%a5%e8%af%a2%e8%be%93%e5%87%ba%e6%95%b0%e6%8d%ae%e8%af%ad%e5%8f%a5/comment-page-1/#comment-76</link>
		<dc:creator>Thinkagain</dc:creator>
		<pubDate>Wed, 30 Jul 2008 05:49:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.pkphp.com/?p=362#comment-76</guid>
		<description>嘿嘿，这语句不知道，确实要挨板子。</description>
		<content:encoded><![CDATA[<p>嘿嘿，这语句不知道，确实要挨板子。</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: askie</title>
		<link>http://www.pkphp.com/2008/07/28/mysql%e9%9a%8f%e6%9c%ba%e6%9f%a5%e8%af%a2%e8%be%93%e5%87%ba%e6%95%b0%e6%8d%ae%e8%af%ad%e5%8f%a5/comment-page-1/#comment-75</link>
		<dc:creator>askie</dc:creator>
		<pubDate>Wed, 30 Jul 2008 04:34:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.pkphp.com/?p=362#comment-75</guid>
		<description>汗！</description>
		<content:encoded><![CDATA[<p>汗！</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Denis</title>
		<link>http://www.pkphp.com/2008/07/28/mysql%e9%9a%8f%e6%9c%ba%e6%9f%a5%e8%af%a2%e8%be%93%e5%87%ba%e6%95%b0%e6%8d%ae%e8%af%ad%e5%8f%a5/comment-page-1/#comment-74</link>
		<dc:creator>Denis</dc:creator>
		<pubDate>Tue, 29 Jul 2008 14:39:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.pkphp.com/?p=362#comment-74</guid>
		<description>你竟然不知道这个。。。。
汗！</description>
		<content:encoded><![CDATA[<p>你竟然不知道这个。。。。<br />
汗！</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: askie</title>
		<link>http://www.pkphp.com/2008/07/28/mysql%e9%9a%8f%e6%9c%ba%e6%9f%a5%e8%af%a2%e8%be%93%e5%87%ba%e6%95%b0%e6%8d%ae%e8%af%ad%e5%8f%a5/comment-page-1/#comment-72</link>
		<dc:creator>askie</dc:creator>
		<pubDate>Tue, 29 Jul 2008 11:40:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.pkphp.com/?p=362#comment-72</guid>
		<description>没有具体测试，不知道哪个占用资源较多！</description>
		<content:encoded><![CDATA[<p>没有具体测试，不知道哪个占用资源较多！</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: neekey</title>
		<link>http://www.pkphp.com/2008/07/28/mysql%e9%9a%8f%e6%9c%ba%e6%9f%a5%e8%af%a2%e8%be%93%e5%87%ba%e6%95%b0%e6%8d%ae%e8%af%ad%e5%8f%a5/comment-page-1/#comment-71</link>
		<dc:creator>neekey</dc:creator>
		<pubDate>Tue, 29 Jul 2008 10:41:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.pkphp.com/?p=362#comment-71</guid>
		<description>这个方法似乎不是很好啊。很浪费服务器资源的
最好的方法还是
1.提取数据库里ID最大最小值
2.用PHP的随机函数取出随机数
3.接着用SELECT查询语句提取ID=随机值
这个方法比较省资源的 :)</description>
		<content:encoded><![CDATA[<p>这个方法似乎不是很好啊。很浪费服务器资源的<br />
最好的方法还是<br />
1.提取数据库里ID最大最小值<br />
2.用PHP的随机函数取出随机数<br />
3.接着用SELECT查询语句提取ID=随机值<br />
这个方法比较省资源的 <img src='http://www.pkphp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>

