Re: [SQL] SELECT TOP _x_ ?? - Mailing list pgsql-sql

From Chris Bitmead
Subject Re: [SQL] SELECT TOP _x_ ??
Date
Msg-id 371FDC3A.5A8BA9FF@bigfoot.com
Whole thread Raw
In response to SELECT TOP _x_ ??  ("Justin Long" <justinlong@strategicnetwork.org>)
List 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.bitmead@bigfoot.com


pgsql-sql by date:

Previous
From: Chris Bitmead
Date:
Subject: Re: [SQL] Finding the "most recent" rows
Next
From: Chairudin Sentosa
Date:
Subject: Re: [SQL] Finding the "most recent" rows