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

From Achilleus Mantzios
Subject Re: Inquiry From Form [pgsql]
Date
Msg-id Pine.LNX.4.44.0305231626510.30269-100000@matrix.gatewaynet.com
Whole thread Raw
In response to Re: Inquiry From Form [pgsql]  (Christoph Haller <ch@rodos.fzk.de>)
List pgsql-sql
On Fri, 23 May 2003, Christoph Haller wrote:

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

Could you try

selecy name from bar where serves_greek_tsipouro order by price limit 10;

> 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
> 
> 
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster
> 

-- 
==================================================================
Achilleus Mantzios
S/W Engineer
IT dept
Dynacom Tankers Mngmt
Nikis 4, Glyfada
Athens 16610
Greece
tel:    +30-210-8981112
fax:    +30-210-8981877
email:  achill@matrix.gatewaynet.com       mantzios@softlab.ece.ntua.gr



pgsql-sql by date:

Previous
From: "Eric Anderson Vianet SAO"
Date:
Subject: Re: see toast table
Next
From: Bruce Young
Date:
Subject: Re: language "plpgsql" does not exist