Re: top predicate

From: Ben <bench(at)silentmedia(dot)com>
To: Karen Hill <karen_hill22(at)yahoo(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: top predicate
Date: 2006-05-11 21:01:50
Message-ID: Pine.LNX.4.64.0605111358240.20591@localhost.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Have you tried using the LIMIT clause?

select porducts from sales limit 10;

http://www.postgresql.org/docs/8.1/interactive/queries-limit.html

On Thu, 11 May 2006, Karen Hill wrote:

> It seems PostgreSQL doesn't have a TOP Predicate. Why is that? Here
> is an example:
>
> SELECT TOP 10 products from sales;
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Have you searched our list archives?
>
> http://archives.postgresql.org
>

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Nelson Guda 2006-05-11 21:13:47 shp2pgsql and pgsql2shp
Previous Message Joshua D. Drake 2006-05-11 20:59:31 Re: top predicate