From: Richard Bayet <bayet@enseirb.fr>
To: pgsql-admin@postgresql.org
Subject: Use of the LIMIT clause ?
Date: Mon, 12 Mar 2001 23:36:08 -0700
Message-ID: <3AADBFD7.D462E190@enseirb.fr> (raw)
I read on a website dedicated to MySQL, that the limit clause allows
someone to restrict the result of a query to a certain domain.
Exemple : "select id, title from movie order by id limit 3" -> only the
(here, first) 3 lines of the table
I did knew about this, but the author goes further about the "limit
N,P", which allows someone to get only results between the Nth and Pth
lines of the whole result...
I tried this with psql, but couldn't get anything but parse errors.
However, "\h select" does mention "LIMIT [count, all] {offset, START}"
So, is it possible or not ? And what's the correct syntax ?
Thanks
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: bayet@enseirb.fr, pgsql-admin@postgresql.org
Subject: Re: Use of the LIMIT clause ?
In-Reply-To: <3AADBFD7.D462E190@enseirb.fr>
References: <3AADBFD7.D462E190@enseirb.fr>
* 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