From: Luiz Eduardo Cantanhede Neri <lecneri@gmail.com>
To: Oliveiros Cristina <oliveiros.cristina@marktest.pt>
Cc: pgsql-sql@postgresql.org
Cc: pgsql-novice@postgresql.org
Subject: Re: Obtaining a limited number of records from a long query
Date: Mon, 25 May 2009 10:42:24 -0300
Message-ID: <252e1f290905250642w66c6b962k248624b5327be043@mail.gmail.com> (raw)
In-Reply-To: <020201c9dd3d$372c3f40$ec5a3d0a@marktestcr.marktest.pt>
References: <020201c9dd3d$372c3f40$ec5a3d0a@marktestcr.marktest.pt>
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.cristina@marktest.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
>
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: lecneri@gmail.com, oliveiros.cristina@marktest.pt, pgsql-novice@postgresql.org
Subject: Re: Obtaining a limited number of records from a long query
In-Reply-To: <252e1f290905250642w66c6b962k248624b5327be043@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox