<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Scott Tucker's Weblog &#187; LIMIT</title>
	<atom:link href="http://instantcode.wordpress.com/tag/limit/feed/" rel="self" type="application/rss+xml" />
	<link>http://instantcode.wordpress.com</link>
	<description>Just another WordPress.com weblog</description>
	<lastBuildDate>Sun, 26 Apr 2009 07:03:42 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='instantcode.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/729f901f3beb5f3871c840dcd7eb0fcb?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>Scott Tucker's Weblog &#187; LIMIT</title>
		<link>http://instantcode.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://instantcode.wordpress.com/osd.xml" title="Scott Tucker&#8217;s Weblog" />
		<item>
		<title>Looking at MySQL</title>
		<link>http://instantcode.wordpress.com/2008/06/25/looking-at-mysql/</link>
		<comments>http://instantcode.wordpress.com/2008/06/25/looking-at-mysql/#comments</comments>
		<pubDate>Wed, 25 Jun 2008 06:04:54 +0000</pubDate>
		<dc:creator>instantcode</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Database Paging]]></category>
		<category><![CDATA[LIMIT]]></category>
		<category><![CDATA[Quick Objects]]></category>
		<category><![CDATA[Replication]]></category>

		<guid isPermaLink="false">http://instantcode.wordpress.com/2008/06/25/looking-at-mysql/</guid>
		<description><![CDATA[I must admit that I have mostly worked with SQL Server and a little bit with Oracle. I am now getting ready to start a project that will work with MySQL. I was looking at few samples to see how to do different things. One of the coolest things I found in MySQL is the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=instantcode.wordpress.com&blog=3790032&post=9&subd=instantcode&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I must admit that I have mostly worked with SQL Server and a little bit with Oracle. I am now getting ready to start a project that will work with <a href="http://www.mysql.com">MySQL</a>. I was looking at few samples to see how to do different things. One of the coolest things I found in MySQL is the ability to do paging is very simple. Unlike Oracle or SQL 2005 which require complex SQL constructs to build a query that returns a subset of rows at a time, MySQL uses a very simple approach. MySQL uses a keyword called LIMIT and you can specify two values after LIMIT and they are used as the starting point and the ending point of number of rows.</p>
<p>So if you want to create a paged query in MySQL all you have to do is add LIMIT keyword at the end.</p>
<p>select * from `products` LIMIT 10, 5</p>
<p>This query above would return rows that are on positions 11, 12, 13, 14, and 15.</p>
<p>Simple isn&#8217;t it? Now match that SQL Server or Oracle!!</p>
<p>I actually never really had to write paged queries by hand as my favorite ORM product <a href="http://www.quickobjects.com">Quick Objects</a> always took care of that for me. All I had to do was set two properties even with most complex joins/criteria based queries. Quick Objects guys are saying they will start supporting MySQL in the next release which should be due about now so lets see how that goes.</p>
<p>Another thing I found is the ability to do <a href="http://dev.mysql.com/doc/refman/5.0/en/replication-howto.html">replication in MySQL</a>.  I haven&#8217;t fully gone through the docs but thats next.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/instantcode.wordpress.com/9/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/instantcode.wordpress.com/9/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/instantcode.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/instantcode.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/instantcode.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/instantcode.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/instantcode.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/instantcode.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/instantcode.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/instantcode.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/instantcode.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/instantcode.wordpress.com/9/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=instantcode.wordpress.com&blog=3790032&post=9&subd=instantcode&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://instantcode.wordpress.com/2008/06/25/looking-at-mysql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8b99988eef70a55c5ede01c733c56a57?s=96&#38;d=identicon" medium="image">
			<media:title type="html">instantcode</media:title>
		</media:content>
	</item>
	</channel>
</rss>