<?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: LIMIT in SELECT statements in Firebird</title>
	<atom:link href="http://scott.yang.id.au/2004/01/limit-in-select-statements-in-firebird/feed/" rel="self" type="application/rss+xml" />
	<link>http://scott.yang.id.au/2004/01/limit-in-select-statements-in-firebird/</link>
	<description>Faith, Technology and Randomness in Life, According to Scott</description>
	<lastBuildDate>Wed, 08 Feb 2012 13:17:24 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: rtmex</title>
		<link>http://scott.yang.id.au/2004/01/limit-in-select-statements-in-firebird/#comment-100737</link>
		<dc:creator>rtmex</dc:creator>
		<pubDate>Tue, 19 Oct 2010 00:23:30 +0000</pubDate>
		<guid isPermaLink="false">http://scott.yang.id.au/2004/01/limit-in-select-statements-in-firebird/#comment-100737</guid>
		<description>I need to make a query that involves 2 tables (the classic master-detail), I need all the records on the master table that match the where clausa but just the first record of the detail table, how can this be done with Firebird?

Thanks in advance</description>
		<content:encoded><![CDATA[<p>I need to make a query that involves 2 tables (the classic master-detail), I need all the records on the master table that match the where clausa but just the first record of the detail table, how can this be done with Firebird?</p>
<p>Thanks in advance</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: inwebdeveloper</title>
		<link>http://scott.yang.id.au/2004/01/limit-in-select-statements-in-firebird/#comment-100477</link>
		<dc:creator>inwebdeveloper</dc:creator>
		<pubDate>Mon, 02 Aug 2010 07:46:54 +0000</pubDate>
		<guid isPermaLink="false">http://scott.yang.id.au/2004/01/limit-in-select-statements-in-firebird/#comment-100477</guid>
		<description>$result=ibase_query($conn,&quot;SELECT FIRST 10 SKIP 20 soid,itemno,quantity,unitprice,itemovdesc,itemreserved1,itemreserved2,itemreserved3 from SODET&quot;);

it&#039;s not work
Warning: ibase_query() [function.ibase-query]: Dynamic SQL Error SQL error code = -104 Token unknown - line 1, char 13 10 in C:\AppServ\www\phpfirebird\sodet.php on line 12

how fixed?</description>
		<content:encoded><![CDATA[<p>$result=ibase_query($conn,&#8221;SELECT FIRST 10 SKIP 20 soid,itemno,quantity,unitprice,itemovdesc,itemreserved1,itemreserved2,itemreserved3 from SODET&#8221;);</p>
<p>it&#8217;s not work<br />
Warning: ibase_query() [function.ibase-query]: Dynamic SQL Error SQL error code = -104 Token unknown &#8211; line 1, char 13 10 in C:\AppServ\www\phpfirebird\sodet.php on line 12</p>
<p>how fixed?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Limit Rows in Interbase/Firebird SQL statement</title>
		<link>http://scott.yang.id.au/2004/01/limit-in-select-statements-in-firebird/#comment-97141</link>
		<dc:creator>Limit Rows in Interbase/Firebird SQL statement</dc:creator>
		<pubDate>Tue, 23 Dec 2008 12:17:13 +0000</pubDate>
		<guid isPermaLink="false">http://scott.yang.id.au/2004/01/limit-in-select-statements-in-firebird/#comment-97141</guid>
		<description>[...] for http://scott.yang.id.au/2004/01/limit-in-select-statements-in-firebird/    Categories: Database, Firebird, [...]</description>
		<content:encoded><![CDATA[<p>[...] for http://scott.yang.id.au/2004/01/limit-in-select-statements-in-firebird/    Categories: Database, Firebird, [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Roland</title>
		<link>http://scott.yang.id.au/2004/01/limit-in-select-statements-in-firebird/#comment-93874</link>
		<dc:creator>Roland</dc:creator>
		<pubDate>Thu, 26 Jun 2008 17:54:01 +0000</pubDate>
		<guid isPermaLink="false">http://scott.yang.id.au/2004/01/limit-in-select-statements-in-firebird/#comment-93874</guid>
		<description>Thanks for the perfect hint!
By the way, if you check this on a relativly big table (100k records), using indexes for your query, the result is confusing. While the query without ROWS or FIRST-SKIP runs in milliseconds (using the indexes), the query with the ROWS or FIRST-SKIP doesn&#039;t use the indexes and takes 1-2 seconds to retrieve the result. It&#039;s a bit annoying. Any comments?</description>
		<content:encoded><![CDATA[<p>Thanks for the perfect hint!<br />
By the way, if you check this on a relativly big table (100k records), using indexes for your query, the result is confusing. While the query without ROWS or FIRST-SKIP runs in milliseconds (using the indexes), the query with the ROWS or FIRST-SKIP doesn&#8217;t use the indexes and takes 1-2 seconds to retrieve the result. It&#8217;s a bit annoying. Any comments?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mariano</title>
		<link>http://scott.yang.id.au/2004/01/limit-in-select-statements-in-firebird/#comment-93773</link>
		<dc:creator>Mariano</dc:creator>
		<pubDate>Fri, 20 Jun 2008 18:42:09 +0000</pubDate>
		<guid isPermaLink="false">http://scott.yang.id.au/2004/01/limit-in-select-statements-in-firebird/#comment-93773</guid>
		<description>Thanks Scott, it was indeed an useful tip. 

I agree with you regarding Firebird documentation: it&#039;s really really incomplete.
The community should realize how important is to have up2date docs: indeed is a major key to success.</description>
		<content:encoded><![CDATA[<p>Thanks Scott, it was indeed an useful tip. </p>
<p>I agree with you regarding Firebird documentation: it&#8217;s really really incomplete.<br />
The community should realize how important is to have up2date docs: indeed is a major key to success.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: matipl</title>
		<link>http://scott.yang.id.au/2004/01/limit-in-select-statements-in-firebird/#comment-93432</link>
		<dc:creator>matipl</dc:creator>
		<pubDate>Fri, 30 May 2008 13:42:29 +0000</pubDate>
		<guid isPermaLink="false">http://scott.yang.id.au/2004/01/limit-in-select-statements-in-firebird/#comment-93432</guid>
		<description>In FirebirdSQL 2 also:

SELECT column1, column2, column3 FROM foo ROWS 10 TO 20</description>
		<content:encoded><![CDATA[<p>In FirebirdSQL 2 also:</p>
<p>SELECT column1, column2, column3 FROM foo ROWS 10 TO 20</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Niels</title>
		<link>http://scott.yang.id.au/2004/01/limit-in-select-statements-in-firebird/#comment-92668</link>
		<dc:creator>Niels</dc:creator>
		<pubDate>Wed, 23 Apr 2008 14:25:40 +0000</pubDate>
		<guid isPermaLink="false">http://scott.yang.id.au/2004/01/limit-in-select-statements-in-firebird/#comment-92668</guid>
		<description>Thanks! You saved my day.</description>
		<content:encoded><![CDATA[<p>Thanks! You saved my day.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kate</title>
		<link>http://scott.yang.id.au/2004/01/limit-in-select-statements-in-firebird/#comment-90735</link>
		<dc:creator>Kate</dc:creator>
		<pubDate>Sat, 02 Feb 2008 21:16:01 +0000</pubDate>
		<guid isPermaLink="false">http://scott.yang.id.au/2004/01/limit-in-select-statements-in-firebird/#comment-90735</guid>
		<description>yes, it&#039;s a very useful post :D</description>
		<content:encoded><![CDATA[<p>yes, it&#8217;s a very useful post :D</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: utku</title>
		<link>http://scott.yang.id.au/2004/01/limit-in-select-statements-in-firebird/#comment-90552</link>
		<dc:creator>utku</dc:creator>
		<pubDate>Mon, 28 Jan 2008 15:33:26 +0000</pubDate>
		<guid isPermaLink="false">http://scott.yang.id.au/2004/01/limit-in-select-statements-in-firebird/#comment-90552</guid>
		<description>thanks for this post after 4 years!!! :)</description>
		<content:encoded><![CDATA[<p>thanks for this post after 4 years!!! :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andresa</title>
		<link>http://scott.yang.id.au/2004/01/limit-in-select-statements-in-firebird/#comment-88823</link>
		<dc:creator>Andresa</dc:creator>
		<pubDate>Mon, 15 Oct 2007 13:38:31 +0000</pubDate>
		<guid isPermaLink="false">http://scott.yang.id.au/2004/01/limit-in-select-statements-in-firebird/#comment-88823</guid>
		<description>Yes! It&#039;s fine, exectaly what I needed!

Thanks!</description>
		<content:encoded><![CDATA[<p>Yes! It&#8217;s fine, exectaly what I needed!</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rodrigo</title>
		<link>http://scott.yang.id.au/2004/01/limit-in-select-statements-in-firebird/#comment-72069</link>
		<dc:creator>Rodrigo</dc:creator>
		<pubDate>Tue, 30 Jan 2007 19:30:57 +0000</pubDate>
		<guid isPermaLink="false">http://scott.yang.id.au/2004/01/limit-in-select-statements-in-firebird/#comment-72069</guid>
		<description>Great! Thanks man. Works perfectly.</description>
		<content:encoded><![CDATA[<p>Great! Thanks man. Works perfectly.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: scotty</title>
		<link>http://scott.yang.id.au/2004/01/limit-in-select-statements-in-firebird/#comment-68505</link>
		<dc:creator>scotty</dc:creator>
		<pubDate>Thu, 11 Jan 2007 21:05:02 +0000</pubDate>
		<guid isPermaLink="false">http://scott.yang.id.au/2004/01/limit-in-select-statements-in-firebird/#comment-68505</guid>
		<description>You are absolutely right. Guess how long I have not been using PostgreSQL...</description>
		<content:encoded><![CDATA[<p>You are absolutely right. Guess how long I have not been using PostgreSQL&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Milen A. Radev</title>
		<link>http://scott.yang.id.au/2004/01/limit-in-select-statements-in-firebird/#comment-68455</link>
		<dc:creator>Milen A. Radev</dc:creator>
		<pubDate>Thu, 11 Jan 2007 13:08:39 +0000</pubDate>
		<guid isPermaLink="false">http://scott.yang.id.au/2004/01/limit-in-select-statements-in-firebird/#comment-68455</guid>
		<description>Actually the PostgreSQL equivalent is:

SELECT column1, column2, column3 FROM foo LIMIT 10 OFFSET 20;


as you could see from here - http://www.postgresql.org/docs/8.1/static/sql-select.html#SQL-LIMIT .</description>
		<content:encoded><![CDATA[<p>Actually the PostgreSQL equivalent is:</p>
<p>SELECT column1, column2, column3 FROM foo LIMIT 10 OFFSET 20;</p>
<p>as you could see from here &#8211; <a href="http://www.postgresql.org/docs/8.1/static/sql-select.html#SQL-LIMIT" rel="nofollow">http://www.postgresql.org/docs/8.1/static/sql-select.html#SQL-LIMIT</a> .</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: timbo</title>
		<link>http://scott.yang.id.au/2004/01/limit-in-select-statements-in-firebird/#comment-25545</link>
		<dc:creator>timbo</dc:creator>
		<pubDate>Fri, 05 May 2006 15:22:52 +0000</pubDate>
		<guid isPermaLink="false">http://scott.yang.id.au/2004/01/limit-in-select-statements-in-firebird/#comment-25545</guid>
		<description>Ta! Just what I needed</description>
		<content:encoded><![CDATA[<p>Ta! Just what I needed</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: fatema</title>
		<link>http://scott.yang.id.au/2004/01/limit-in-select-statements-in-firebird/#comment-17911</link>
		<dc:creator>fatema</dc:creator>
		<pubDate>Wed, 11 May 2005 11:38:43 +0000</pubDate>
		<guid isPermaLink="false">http://scott.yang.id.au/2004/01/limit-in-select-statements-in-firebird/#comment-17911</guid>
		<description>thnaks, this info was of grate use to me</description>
		<content:encoded><![CDATA[<p>thnaks, this info was of grate use to me</p>
]]></content:encoded>
	</item>
</channel>
</rss>

