From: Christoph Haller <ch@rodos.fzk.de>
To: pgsql-sql@postgresql.org
Cc: rajendran@davlin.co.in
Subject: Re: Inquiry From Form [pgsql]
Date: Fri, 23 May 2003 13:24:17 +0200
Message-ID: <3ECE04E1.86BE5143@rodos.fzk.de> (raw)
>
> I am using Java language for getting first 10 records from the table
in postgres.
> I dont know how to fetch 10 records from the table.
> Raj
>
First answer is RTFM. But within psql you can fetch like this:
begin;
declare fu cursor for select * from foo;
fetch 10 in fu;
fetch 10 in fu;
...
close fu;
end;
Does this answer your question?
Regards, Christoph
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: ch@rodos.fzk.de, rajendran@davlin.co.in
Subject: Re: Inquiry From Form [pgsql]
In-Reply-To: <3ECE04E1.86BE5143@rodos.fzk.de>
* 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