Received: from miranda.emc.com.ph ([210.23.230.194]) by mail.postgresql.org (8.11.1/8.11.1) with ESMTP id f2DA34x88411 for ; Tue, 13 Mar 2001 05:03:12 -0500 (EST) (envelope-from pgsql-admin@fc.emc.com.ph) Received: from fc.emc.com.ph (mnl.emc.com.ph [203.167.64.16]) by miranda.emc.com.ph (Postfix) with ESMTP id CA3BA6B04F; Tue, 13 Mar 2001 18:02:46 +0800 (PHT) Message-id: Date: Tue, 13 Mar 2001 18:02:47 +0800 Subject: Re: Use of the LIMIT clause ? To: bayet@enseirb.fr Cc: pgsql-admin@postgresql.org From: "pgsql-admin" MIME-Version: 1.0 Content-type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Archive-Number: 200103/103 X-Sequence-Number: 951 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