data inserting in embedded C/libpq - Mailing list pgsql-general

From planx plnetx
Subject data inserting in embedded C/libpq
Date
Msg-id 20000605225509.5283.qmail@hotmail.com
Whole thread Raw
List pgsql-general
How I can insert data in Postgres with embedded sql?
May I can build a string like

char *query;
sprintf
(query,"INSERT INTO %s (%s) (%s) VALUES (%s)",table,field,value);

and process with PQexec(conn, query)?
my doubts is that PQexec is for queries and it must return a string...

how I can do in other ways?
________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com


pgsql-general by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: 32KB Tuples
Next
From: Nissim
Date:
Subject: Anon CVS