libpq/INSERT - Mailing list pgsql-interfaces

From Andy Champion
Subject libpq/INSERT
Date
Msg-id F124n1xxWn9R6mJB5260000bd17@hotmail.com
Whole thread Raw
Responses Re: libpq/INSERT
Re: libpq/INSERT
Re: libpq/INSERT
List pgsql-interfaces
Hi, i'm trying to insert data pulled into a postgresql database but i'm having some problems with the inserts.
 
i know that this:
sprintf(insert_string, "INSERT INTO udpdata VALUES (1234);\n");
 
is a valid statment, but how do i alter this so that instead of the 1234 i insert the value of a variable?
 
thanks


Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

pgsql-interfaces by date:

Previous
From: Randall Perry
Date:
Subject: Re: [GENERAL] Var substitution in SELECT statements
Next
From: liam
Date:
Subject: Re: libpq/INSERT