Re: [SQL] SELECT TOP _x_ ??

From: Chris Bitmead <chris(dot)bitmead(at)bigfoot(dot)com>
To: pgsql-sql(at)hub(dot)org
Subject: Re: [SQL] SELECT TOP _x_ ??
Date: 1999-04-23 02:34:34
Message-ID: 371FDC3A.5A8BA9FF@bigfoot.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Chairudin Sentosa wrote:
>
> I tried this, did not work.
>
> ibs=> select * from ibs_subscriber limit 5;
> ERROR: parser: syntax error at or near "5"
>
> Regards,
> Chai
>
> PS: PostgreSQL 6.5

Which snapshot?

>
> Chris Bitmead wrote:
>
> > Justin Long wrote:
> > >
> > > In Microsoft SQL Server you could issue a command
> > >
> > > SELECT TOP 5 * FROM database...
> >
> > SELECT * FROM TABLE LIMIT 5;
> >
> > You may have to be running 6.5, not sure.
> >
> > --
> > Chris Bitmead
> > http://www.bigfoot.com/~chris.bitmead
> > mailto:chris(dot)bitmead(at)bigfoot(dot)com

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Tom Lane 1999-04-23 04:08:23 Re: [SQL] Finding the "most recent" rows
Previous Message Chris Bitmead 1999-04-23 02:30:33 Re: [SQL] Finding the "most recent" rows