[GENERAL] Question programming in C, PGresult *

From: "Agape" <agape(at)korea(dot)co(dot)kr>
To: <pgsql-general(at)postgreSQL(dot)org>
Subject: [GENERAL] Question programming in C, PGresult *
Date: 1998-10-03 18:35:35
Message-ID: 000c01bdeefc$9ea318a0$cdd3a1d1@eloha
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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.

Browse pgsql-general by date

  From Date Subject
Next Message Patrick Verdon 1998-10-04 00:39:31 DBD::Pg & cursors & total results
Previous Message Andrea Antibo 1998-10-03 13:41:43 postmaster don't run