Re: Obtaining a limited number of records from a long query

Поиск
Список
Период
Сортировка
От Ivan Sergio Borgonovo
Тема Re: Obtaining a limited number of records from a long query
Дата
Msg-id 20090525161347.166789ac@dawn.webthatworks.it
обсуждение исходный текст
Ответ на Re: Obtaining a limited number of records from a long query  ("Oliveiros Cristina" <oliveiros.cristina@marktest.pt>)
Список pgsql-sql
On Mon, 25 May 2009 14:55:54 +0100
"Oliveiros Cristina" <oliveiros.cristina@marktest.pt> wrote:

> 
> 
> Thanks a million, Andy.
> 
> It's precisely what I needed, Indeed!

Beware: unless you specify an ORDER BY (and you expect no other
record is inserted between one query and the other... or you just
don't care) you may incur in unexpected results.

A query without an order by is not granted to return the result in
the same order.

If you can (same session) you may use cursors.


-- 
Ivan Sergio Borgonovo
http://www.webthatworks.it



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

Предыдущее
От: "Oliveiros Cristina"
Дата:
Сообщение: Re: Obtaining a limited number of records from a long query
Следующее
От: "Oliveiros Cristina"
Дата:
Сообщение: Re: Obtaining a limited number of records from a long query