Обсуждение: AW: [HACKERS] SELECT ... LIMIT (trial implementation)

Поиск
Список
Период
Сортировка

AW: [HACKERS] SELECT ... LIMIT (trial implementation)

От
Andreas Zeugswetter
Дата:
> 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 ....

Andreas





Re: AW: [HACKERS] SELECT ... LIMIT (trial implementation)

От
Bruce Momjian
Дата:
> 
> > 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