<?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>Max Titov IV @ TechSplice &#187; database</title>
	<atom:link href="http://www.blog.techsplice.com/archives/tag/database/feed" rel="self" type="application/rss+xml" />
	<link>http://www.blog.techsplice.com</link>
	<description>The most beautiful music of all is the music of what happens.</description>
	<lastBuildDate>Tue, 20 Dec 2011 18:56:50 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>SQL: SELECT random number of rows</title>
		<link>http://www.blog.techsplice.com/archives/246</link>
		<comments>http://www.blog.techsplice.com/archives/246#comments</comments>
		<pubDate>Wed, 06 May 2009 19:17:19 +0000</pubDate>
		<dc:creator>maxtmax</dc:creator>
				<category><![CDATA[Everyday stuff]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[random]]></category>
		<category><![CDATA[select]]></category>
		<category><![CDATA[sql]]></category>

		<guid isPermaLink="false">http://www.blog.techsplice.com/?p=246</guid>
		<description><![CDATA[Here&#8217;s a quick way of requesting a random number of rows from a MySQL database: SELECT * FROM &#60;tablename&#62; order by rand() limit &#60;n&#62;; tablename: is the name of the table you wish to access n: is thenumber of rows you wish to return Be careful though, don&#8217;t use this logic on a database with [...]]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s a quick way of requesting a random number of rows from a MySQL database:</p>
<pre class="prettyprint">SELECT * FROM &lt;tablename&gt; order by rand() limit &lt;n&gt;;</pre>
<p style="padding-left: 30px;"><em>tablename:</em> is the name of the table you wish to access</p>
<p style="padding-left: 30px;"><em>n:</em> is thenumber of rows you wish to return</p>
<p>Be careful though, <em>don&#8217;t</em> use this logic on a database with a large record, the performance will be unpleasant.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.blog.techsplice.com/archives/246/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.616 seconds -->

