Re: Implementing next 30 (or so) rows "sliding window"

Поиск
Список
Период
Сортировка
От Jaime Casanova
Тема Re: Implementing next 30 (or so) rows "sliding window"
Дата
Msg-id 3073cc9b0912090601s7dabe26cte4a2bcd0eccac21a@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Implementing next 30 (or so) rows "sliding window"  (Scott Marlowe <scott.marlowe@gmail.com>)
Список pgsql-general
On Tue, Dec 8, 2009 at 3:51 PM, Scott Marlowe <scott.marlowe@gmail.com> wrote:
> On Tue, Dec 8, 2009 at 12:12 PM, Allan Kamau <kamauallan@gmail.com> wrote:
>> Hi,
>> I did follow the basic advise and consulted the documentation for
>> "SELECT" and came across "[ FETCH { FIRST | NEXT } [ count ] { ROW |
>> ROWS } ONLY]" clause which seems to satisfy my requirement.
>
> This is a cursor,

no. this is sql 2008 syntax for the LIMIT clause:
http://www.postgresql.org/docs/8.4/static/sql-select.html#SQL-LIMIT

> which is one of two very basic ways of doing this.

i agree, that using cursor is another (preferred?) solution for this,

--
Atentamente,
Jaime Casanova
Soporte y capacitación de PostgreSQL
Asesoría y desarrollo de sistemas
Guayaquil - Ecuador
Cel. +59387171157

В списке pgsql-general по дате отправления:

Предыдущее
От: Guillaume Lelarge
Дата:
Сообщение: Re: Rules and conditions
Следующее
От: Joana Camacho
Дата:
Сообщение: [General] beginner!!!