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

From Chairudin Sentosa
Subject Re: [SQL] SELECT TOP _x_ ??
Date
Msg-id 372030FF.FCB6D1D4@prima.net.id
Whole thread Raw
In response to SELECT TOP _x_ ??  ("Justin Long" <justinlong@strategicnetwork.org>)
List pgsql-sql
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 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: Chairudin Sentosa
Date:
Subject: Re: [SQL] Finding the "most recent" rows
Next
From: Chairudin Sentosa
Date:
Subject: Re: [SQL] Finding the "most recent" rows