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

From: Luiz Eduardo Cantanhede Neri <lecneri(at)gmail(dot)com>
To: Oliveiros Cristina <oliveiros(dot)cristina(at)marktest(dot)pt>
Cc: pgsql-sql(at)postgresql(dot)org, pgsql-novice(at)postgresql(dot)org
Subject: Re: Obtaining a limited number of records from a long query
Date: 2009-05-25 13:42:24
Message-ID: 252e1f290905250642w66c6b962k248624b5327be043@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice pgsql-sql

Visit http://www.sqlzoo.net/howto/source/z.dir/tip915069/postgres and u'll
get ur awnser and others like from 11th and on.

For now you may try SELECT * FROM cia LIMIT 10

On Mon, May 25, 2009 at 10:32 AM, Oliveiros Cristina <
oliveiros(dot)cristina(at)marktest(dot)pt> wrote:

> Dear List,
>
> Is there any way to force a query to return just a few records?
>
> For ex, returning just the first ten rows from a long ORDER BY query ?
>
> And then, eventually, obtaining the remaining records at a later time, or
> in background?
>
> Thanks in advance for your help,
>
> Best,
> Oliveiros
>

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Andy Shellam 2009-05-25 13:45:30 Re: Obtaining a limited number of records from a long query
Previous Message Oliveiros Cristina 2009-05-25 13:32:14 Obtaining a limited number of records from a long query

Browse pgsql-sql by date

  From Date Subject
Next Message Andy Shellam 2009-05-25 13:45:30 Re: Obtaining a limited number of records from a long query
Previous Message Oliveiros Cristina 2009-05-25 13:32:14 Obtaining a limited number of records from a long query