[GENERAL] Question programming in C, PGresult * - Mailing list pgsql-general

From Agape
Subject [GENERAL] Question programming in C, PGresult *
Date
Msg-id 000c01bdeefc$9ea318a0$cdd3a1d1@eloha
Whole thread Raw
List pgsql-general
Hi.
 
I have a question regarding programming in C and postgreSQL.
 
Is there any way that I can save few results to one PGresult * ??
 
Like this
------------------------
BEGIN;
DECLARE portal1 CURSOR FOR select * from item where item = 'aa';
DECLARE portal2 CURSOR FOR select * from item where item = 'bb';
DECLARE portal3 CURSOR FOR select * from item where item = 'cc';
 
res = PQexec(conn,"FETCH ALL in portal*");  // Like this
END;
------------------------
I really need this function.
I'm a C programmer but not a expert.
If anyone know how to do this in C...
Please let me know..
 
Thanks in advence.
 

pgsql-general by date:

Previous
From: Andrea Antibo
Date:
Subject: postmaster don't run
Next
From: Greg Youngblood
Date:
Subject: Please help with performance tuning on Postgres