pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: jwieck@debis.com
To: fmorton@base2inc.com
Cc: pgsql-sql@postgreSQL.org
Subject: Re: [SQL] setting select limit?
Date: Thu, 11 Feb 1999 10:15:24 +0100 (MET)
Message-ID: <m10AsDU-000EBRC@orion.SAPserv.Hamburg.dsh.de> (raw)
In-Reply-To: <01ae01be555f$0390d4f0$8355e5ce@base2inc.com>

>
> 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@debis.com (Jan Wieck) #





view thread (5+ messages)  latest in thread

Message-ID: <m10AsDU-000EBRC@orion.SAPserv.Hamburg.dsh.de>
Permalink:  ../m10AsDU-000EBRC@orion.SAPserv.Hamburg.dsh.de/
Also on:    postgresql.org/message-id/m10AsDU-000EBRC@orion.SAPserv.Hamburg.dsh.de

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: jwieck@debis.com, fmorton@base2inc.com
  Subject: Re: [SQL] setting select limit?
  In-Reply-To: <m10AsDU-000EBRC@orion.SAPserv.Hamburg.dsh.de>
  References: <01ae01be555f$0390d4f0$8355e5ce@base2inc.com> <m10AsDU-000EBRC@orion.SAPserv.Hamburg.dsh.de>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox