Re: AW: [HACKERS] SELECT ... LIMIT (trial implementation) - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: AW: [HACKERS] SELECT ... LIMIT (trial implementation)
Date
Msg-id 199810191527.LAA09854@candle.pha.pa.us
Whole thread Raw
In response to AW: [HACKERS] SELECT ... LIMIT (trial implementation)  (Andreas Zeugswetter <andreas.zeugswetter@telecom.at>)
List pgsql-hackers
> 
> > Bruce Momjian <maillist@candle.pha.pa.us> writes:
> > > What if someone wants the rows from 500 to the end.  Should we allow
> > > the syntax to be:
> > >          SELECT ... [LIMIT count] [OFFSET offset]
> > > LIMIT and OFFSET are independent.
> > 
> > I like that syntax the best, but remember we are not inventing in
> > a green field here.  Isn't this a feature that already exists in
> > other DBMs?  We should probably copy their syntax, unless it's
> > truly spectacularly awful...
> 
> Informix uses the following syntax, but does not have the offset feature:
> 
>     select first 100 * from table ....

I definitely don't like that syntax.

--  Bruce Momjian                        |  http://www.op.net/~candle maillist@candle.pha.pa.us            |  (610)
853-3000+  If your life is a hard drive,     |  830 Blythe Avenue +  Christ can be your backup.        |  Drexel Hill,
Pennsylvania19026
 


pgsql-hackers by date:

Previous
From: "Thomas G. Lockhart"
Date:
Subject: [Fwd: DocBook stylesheets 1.19 released]
Next
From: Bruce Momjian
Date:
Subject: Re: [HACKERS] HAVING bug