Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-interfaces by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group