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  (liam <allenwc@home.com>)
Re: libpq/INSERT  ("Oliver Elphick" <olly@lfix.co.uk>)
Re: libpq/INSERT  ("Brett W. McCoy" <bmccoy@chapelperilous.net>)
List pgsql-interfaces
<div><div>Hi, i'm trying to insert data pulled into a postgresql database but i'm having some problems with the
inserts.</div><div> </div><div>iknow that this:<br />sprintf(insert_string, "INSERT INTO udpdata VALUES
(1234);\n");</div><div> </div><div>isa valid statment, but how do i alter this so that instead of the 1234 i insert the
valueof a variable?</div><div> </div><div>thanks</div></div><br clear="all" /><hr />Get Your Private, Free E-mail from
MSNHotmail at <a href="http://www.hotmail.com">http://www.hotmail.com</a>.<br /> 

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