RE: [GENERAL] LIMITS in SELECTs

Поиск
Список
Период
Сортировка
От Neil Burrows
Тема RE: [GENERAL] LIMITS in SELECTs
Дата
Msg-id 000001be3c14$a3cd3620$0201a8c0@TAZ
обсуждение исходный текст
Ответ на LIMITS in SELECTs  (Fabrice Scemama <Fabrice.Scemama@GESNET.NET>)
Список 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 по дате отправления:

Предыдущее
От: Michael Wright
Дата:
Сообщение: Please help with a Solaris 2.6 build error
Следующее
От: Jorge del Conde
Дата:
Сообщение: Re: mysql: Databases on Linux