Re: pg_select Equivalent in libpq

From: Michael Meskes <meskes(at)postgresql(dot)org>
To: Christof Petig <christof(at)petig-baender(dot)de>
Cc: Ecmel Ercan <ecmel(at)linux-turkey(dot)com>, PostgreSQL <pgsql-interfaces(at)postgresql(dot)org>
Subject: Re: pg_select Equivalent in libpq
Date: 2001-09-19 06:43:14
Message-ID: 20010919084314.B2289@feivel.fam-meskes.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)Fam-Meskes(dot)De
Go SF 49ers! Go Rhein Fire!
Use Debian GNU/Linux! Use PostgreSQL!

In response to

Browse pgsql-interfaces by date

  From Date Subject
Next Message Antonio Sergio de Mello e Souza 2001-09-19 13:31:49 Re: pg_select Equivalent in libpq
Previous Message Christof Petig 2001-09-18 15:35:34 Re: pg_select Equivalent in libpq