From: | Richard Bayet <bayet(at)enseirb(dot)fr> |
---|---|
To: | pgsql-admin(at)postgresql(dot)org |
Subject: | Use of the LIMIT clause ? |
Date: | 2001-03-13 06:36:08 |
Message-ID: | 3AADBFD7.D462E190@enseirb.fr |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin pgsql-sql |
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
From | Date | Subject | |
---|---|---|---|
Next Message | Karel Zak | 2001-03-13 06:44:16 | Re: Python, Postgres support? |
Previous Message | Tom Lane | 2001-03-13 02:21:58 | Re: Use of the LIMIT clause ? |
From | Date | Subject | |
---|---|---|---|
Next Message | Patrik Kudo | 2001-03-13 07:17:21 | != and <> operators |
Previous Message | Tom Lane | 2001-03-13 04:20:55 | Re: error joining 2 views containing GROUP BYs |