Re: [GENERAL] LIMIT QUESTION

From: José Soares <jose(at)sferacarta(dot)com>
To: Chris Bitmead <chris(dot)bitmead(at)bigfoot(dot)com>
Cc: Martin Wong <martin(at)minook(dot)com(dot)sg>, pgsql-general(at)postgresql(dot)org
Subject: Re: [GENERAL] LIMIT QUESTION
Date: 1999-04-29 14:07:02
Message-ID: 37286785.833F3F1A@sferacarta.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Chris Bitmead ha scritto:

> Only PostgreSQL 6.5 Beta supports LIMIT.
>
> > I've an elementary question. What's wrong with the following :
> >
> > dbtest=> select * from testusers limit 10;
> > ERROR: parser: parse error at or near "10"
> > dbtest=> select version();
> > version
> > -------------------------------------------------------------
> > PostgreSQL 6.4.2 on i586-pc-linux-gnu, compiled by gcc 2.7.2.
> > (1 row)
> >
> > the testuser table has about 1000 rows.
> >
> > Please comment.
> >
> > Thanks

Use SET QUERY_LIMT TO 10;
this should work in 6.4.2
______________________________________________________________
PostgreSQL 6.5.0 on i586-pc-linux-gnu, compiled by gcc 2.7.2.3
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Jose'

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Martin Wong 1999-04-29 14:20:27 RE: [GENERAL] LIMIT QUESTION
Previous Message Herouth Maoz 1999-04-29 13:29:08 Re: [GENERAL] Desperately Seeking Regular Expression (fwd)