RE: [GENERAL] LIMITS in SELECTs

From: "Neil Burrows" <maillist(at)remo(dot)demon(dot)co(dot)uk>
To: <pgsql-general(at)postgresql(dot)org>
Subject: RE: [GENERAL] LIMITS in SELECTs
Date: 1999-01-09 21:11:35
Message-ID: 000001be3c14$a3cd3620$0201a8c0@TAZ
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Michael Wright 1999-01-09 21:51:29 Please help with a Solaris 2.6 build error
Previous Message Todd Graham Lewis 1999-01-09 20:11:18 Re: [HACKERS] RE: [GENERAL] Benchmarking PGSQL against Microsoft SQL 7