Skip site navigation (1) Skip section navigation (2)

Re: FETCH FIRST

From: Simon Riggs <simon(at)2ndquadrant(dot)com>
To: Bruce Momjian <bruce(at)momjian(dot)us>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: FETCH FIRST
Date: 2008-03-25 15:11:03
Message-ID: 1206457863.4285.937.camel@ebony.site (view raw or flat)
Thread:
Lists: pgsql-hackers
On Tue, 2008-03-25 at 10:45 -0400, Bruce Momjian wrote:
> Simon Riggs wrote:
> > SQL200n specifies a new command similar to our LIMIT
> > 
> > FETCH { FIRST | NEXT } n { ROW | ROWS } ONLY
> > 
> > and also that the OFFSET command can have an optional suffix
> > 
> > { ROW | ROWS }
> > 
> > Seems like a % project for the TODO list
> 
> Where does this FETCH appear in a SELECT?

It's supposed to go *after* the OFFSET clause in a query, but making it
a simple synonym for LIMIT seems most sensible.

It's also allowed as part of the WITH clause (that we don't yet have).

-- 
  Simon Riggs
  2ndQuadrant  http://www.2ndQuadrant.com 

  PostgreSQL UK 2008 Conference: http://www.postgresql.org.uk


In response to

Responses

pgsql-hackers by date

Next:From: Joshua D. DrakeDate: 2008-03-25 15:26:26
Subject: Re: Images in PostgreSQL
Previous:From: r&dDate: 2008-03-25 15:06:09
Subject: Images in PostgreSQL

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group