Hi.

I'm sorry for posting this to [Hackers] group but I cound't find an expert
in [General] group who can help me. So to speak.

I have a question regarding programming in C/C++ and postgreSQL.
I'm a C/C++ programmer but not an expert.

My question is:
Is there any way that I can save couple of results to one PGresult * ??

This is precisely what I'm going to do..
I'm developing search engine.
Let's assume.  If user enter for keywords like "Search Engine"
My program will separate each tokens.. and postgres will search like as
below..

Something Like this
------------------------
BEGIN;
DECLARE portal1 CURSOR FOR select * from db where description ~* '^search
engine$';
DECLARE portal2 CURSOR FOR select * from db where description ~* 'search
engine';
DECLARE portal3 CURSOR FOR select * from db where description ~* = 'search'
and description ~* 'engine';
DECLARE portal4 CURSOR FOR select * from db where description ~* = 'search'
or description ~* 'engine';

res = PQexec(conn,"FETCH ALL in portal*");  // Like this
END;
------------------------
portal1 sould go first, portal4 should go last.
And I don't wanna use any insert/copy command
(Don't wanna make any new temporary table. becasue there will be lots of
querys)

I really need this function.

If anyone has any idea please let me know..

Thanks in advence.
--
// http://korea.co.kr     All you need to know about KOREA
// SeeHyun Lee <agape@korea.co.kr>         ICQ# 3413400



Sun, 11 Oct 1998 20:39:31 -0400
"Agape" <agape@korea.co.kr>
Question regarding PGresult *