pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Neil Burrows <neil@remo.demon.co.uk>
To: pgsql-sql@postgresql.org
Subject: Restricting number of entries returned
Date: Wed, 15 Jul 1998 20:41:44 +0100
Message-ID: <000101bdb028$9917b4d0$0201a8c0@taz.lenzie.net> (raw)

Hi,

Is there any way of restricting the number or entries returned in an SQL
query?

For example, if you wanted to do a select that ordered the results by a
certain field, and only wanted the "Top 10" entries, is there any way to
specify that you just want the 1st 10 records?

Thanks in advance,

See ya,

Neil Burrows
  /~\  /~\ /~~~~\   E-Mail   - neil@remo.demon.co.uk
  |   \| | | () /            - nburrows@cs.strath.ac.uk
  | |\   | | () \   PGP Key  - http://www.remo.demon.co.uk/pgp/
  \_/  \_/ \____/   Internet - http://www.remo.demon.co.uk/




view thread (2+ messages)  latest in thread

Message-ID: <000101bdb028$9917b4d0$0201a8c0@taz.lenzie.net>
Permalink:  ../000101bdb028$9917b4d0$0201a8c0@taz.lenzie.net/
Also on:    postgresql.org/message-id/000101bdb028$9917b4d0$0201a8c0@taz.lenzie.net

 · 

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: neil@remo.demon.co.uk
  Subject: Re: Restricting number of entries returned
  In-Reply-To: <000101bdb028$9917b4d0$0201a8c0@taz.lenzie.net>
  References: <000101bdb028$9917b4d0$0201a8c0@taz.lenzie.net>

* 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