Re: Inquiry From Form [pgsql] - Mailing list pgsql-sql

From Christoph Haller
Subject Re: Inquiry From Form [pgsql]
Date
Msg-id 3ECE04E1.86BE5143@rodos.fzk.de
Whole thread Raw
In response to Inquiry From Form [pgsql]  (Rajendran <rajendran@davlin.co.in>)
Responses Re: Inquiry From Form [pgsql]
List 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




pgsql-sql by date:

Previous
From: Oliver Elphick
Date:
Subject: Re: language "plpgsql" does not exist
Next
From: Christoph Haller
Date:
Subject: Re: language "plpgsql" does not exist