From: pgsql-admin <pgsql-admin@fc.emc.com.ph>
To: bayet@enseirb.fr
Cc: pgsql-admin@postgresql.org
Subject: Re: Use of the LIMIT clause ?
Date: Tue, 13 Mar 2001 18:02:47 +0800
Message-ID: <fc.000f567200a3bb2e000f567200a3bb2e.a3bb85@fc.emc.com.ph> (raw)
it's like
SELECT *
FROM :table
WHERE :condition
LIMIT :limit
OFFSET :offset
Sherwin
bayet@enseirb.fr writes:
>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
>
>
>---------------------------(end of broadcast)---------------------------
>TIP 4: Don't 'kill -9' the postmaster
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-admin@postgresql.org
Cc: pgsql-admin@fc.emc.com.ph, bayet@enseirb.fr
Subject: Re: Use of the LIMIT clause ?
In-Reply-To: <fc.000f567200a3bb2e000f567200a3bb2e.a3bb85@fc.emc.com.ph>
References: <fc.000f567200a3bb2e000f567200a3bb2e.a3bb85@fc.emc.com.ph>
* 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