| From: | "pgsql-admin" <pgsql-admin(at)fc(dot)emc(dot)com(dot)ph> |
|---|---|
| To: | bayet(at)enseirb(dot)fr |
| Cc: | pgsql-admin(at)postgresql(dot)org |
| Subject: | Re: Use of the LIMIT clause ? |
| Date: | 2001-03-13 10:02:47 |
| Message-ID: | fc.000f567200a3bb2e000f567200a3bb2e.a3bb85@fc.emc.com.ph |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-admin |
it's like
SELECT *
FROM :table
WHERE :condition
LIMIT :limit
OFFSET :offset
Sherwin
bayet(at)enseirb(dot)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
| From | Date | Subject | |
|---|---|---|---|
| Next Message | jairo | 2001-03-13 11:14:09 | Re: Cobol |
| Previous Message | R D | 2001-03-13 07:40:17 | Re: Denying CREATE TABLE capability |