Re: Use of the LIMIT clause ? - Mailing list pgsql-admin

From pgsql-admin
Subject Re: Use of the LIMIT clause ?
Date
Msg-id fc.000f567200a3bb2e000f567200a3bb2e.a3bb85@fc.emc.com.ph
Whole thread Raw
In response to Use of the LIMIT clause ?  (Richard Bayet <bayet@enseirb.fr>)
List pgsql-admin
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



pgsql-admin by date:

Previous
From: R D
Date:
Subject: Re: Denying CREATE TABLE capability
Next
From: "Sherwin Daganato"
Date:
Subject: Re(3): Postgres/Postmaster logging and log rotation