[Question] Help me with programming in C/C++

From: "postgres" <postgres(at)korea(dot)co(dot)kr>
To: <pgsql-general(at)postgreSQL(dot)org>
Subject: [Question] Help me with programming in C/C++
Date: 1998-10-05 03:29:20
Message-ID: 001d01bdf010$58cb3fa0$04d9a1d1@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 couple of 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;
------------------------
portal1 sould go first.
I really need this function.
I'm a C programmer but not a expert.
If anyone know how to do this in C/C++...
Please let me know..

Thanks in advence.

Browse pgsql-general by date

  From Date Subject
Next Message postgres 1998-10-05 05:21:02 [Question] Help me with programming in C/C++
Previous Message Oliver Elphick 1998-10-04 19:14:09 Re: [GENERAL] System admin