data inserting in embedded C/libpq

From: "planx plnetx" <planetx2100(at)hotmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: data inserting in embedded C/libpq
Date: 2000-06-05 22:55:09
Message-ID: 20000605225509.5283.qmail@hotmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Browse pgsql-general by date

  From Date Subject
Next Message Nissim 2000-06-05 23:37:34 Anon CVS
Previous Message Eric Jain 2000-06-05 21:38:54 RE: 32KB Tuples