Re: Inquiry From Form [pgsql]

From: Christoph Haller <ch(at)rodos(dot)fzk(dot)de>
To: pgsql-sql(at)postgresql(dot)org
Cc: rajendran(at)davlin(dot)co(dot)in
Subject: Re: Inquiry From Form [pgsql]
Date: 2003-05-23 11:24:17
Message-ID: 3ECE04E1.86BE5143@rodos.fzk.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

>
> 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

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Christoph Haller 2003-05-23 11:28:10 Re: language "plpgsql" does not exist
Previous Message Oliver Elphick 2003-05-23 11:18:59 Re: language "plpgsql" does not exist