Re: pg_select Equivalent in libpq - Mailing list pgsql-interfaces

From Michael Meskes
Subject Re: pg_select Equivalent in libpq
Date
Msg-id 20010919084314.B2289@feivel.fam-meskes.de
Whole thread Raw
In response to Re: pg_select Equivalent in libpq  (Christof Petig <christof@petig-baender.de>)
List pgsql-interfaces
On Tue, Sep 18, 2001 at 05:35:34PM +0200, Christof Petig wrote:
> > How can I achive the same result in libpq?
> 
> I would recommend a cursor. But I don't know how to do that in pq (only
> with ecpg)

Almost the same way, just execute a DECLARE CURSOR statement defining your
select and then issuing FETCH statements to get the data.

Michael
-- 
Michael Meskes
Michael@Fam-Meskes.De
Go SF 49ers! Go Rhein Fire!
Use Debian GNU/Linux! Use PostgreSQL!


pgsql-interfaces by date:

Previous
From: Christof Petig
Date:
Subject: Re: pg_select Equivalent in libpq
Next
From: Antonio Sergio de Mello e Souza
Date:
Subject: Re: pg_select Equivalent in libpq