Re: [SQL] setting select limit?

From: jwieck(at)debis(dot)com (Jan Wieck)
To: fmorton(at)base2inc(dot)com (Frank Morton)
Cc: pgsql-sql(at)postgreSQL(dot)org
Subject: Re: [SQL] setting select limit?
Date: 1999-02-11 09:15:24
Message-ID: m10AsDU-000EBRC@orion.SAPserv.Hamburg.dsh.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

>
> If a select is going to match 1000 records, but I only want to
> select the first 25, I thought I could:
>
> select * from table limit 25;
>
> But I guess I can't. How do I limit the query? I've search
> around with no results. Thanks.

Exactly that syntax is provided for v6.4 in the feature patch
you find in the patches directory of the ftp server. And it
will be in the standard distribution of v6.5.

Jan

--

#======================================================================#
# It's easier to get forgiveness for being wrong than for being right. #
# Let's break this rule - forgive me. #
#======================================== jwieck(at)debis(dot)com (Jan Wieck) #

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Neil Burrows 1999-02-11 10:15:27 RULE questions.
Previous Message Neil Burrows 1999-02-11 09:12:03 RULE questions.