Re: [SQL] SELECT TOP _x_ ??

From: Chairudin Sentosa <chairudin(at)prima(dot)net(dot)id>
To: Chris Bitmead <chris(dot)bitmead(at)bigfoot(dot)com>
Cc: pgsql-sql(at)hub(dot)org
Subject: Re: [SQL] SELECT TOP _x_ ??
Date: 1999-04-23 08:36:15
Message-ID: 372030FF.FCB6D1D4@prima.net.id
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(dot)bitmead(at)bigfoot(dot)com

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Chairudin Sentosa 1999-04-23 09:13:12 Re: [INTERFACES] where did that date and time come from??
Previous Message Chairudin Sentosa 1999-04-23 08:34:42 Re: [SQL] Finding the "most recent" rows