RE: [GENERAL] LIMITS in SELECTs - Mailing list pgsql-general

From Neil Burrows
Subject RE: [GENERAL] LIMITS in SELECTs
Date
Msg-id 000001be3c14$a3cd3620$0201a8c0@TAZ
Whole thread Raw
In response to LIMITS in SELECTs  (Fabrice Scemama <Fabrice.Scemama@GESNET.NET>)
List pgsql-general
Hi,

> Is there a way to select only a range of rows from a table, using
> a  command
> like:
>
> SELECT * FROM table WHERE where_statement LIMIT 50,100;

Assuming you use a "Order By" clause to make sure you got the records in the
appropriate order there is a patch file in the "patches" directory of
ftp.postgresql.org which adds the "LIMIT" command to PostgreSQL 6.4.x

I've not tried it, so cannot say how well it works, or if it can do limits
between 2 values, but you can give it a shot.

Regards,

Neil


pgsql-general by date:

Previous
From: Michael Wright
Date:
Subject: Please help with a Solaris 2.6 build error
Next
From: Jorge del Conde
Date:
Subject: Re: mysql: Databases on Linux