Skip site navigation (1) Skip section navigation (2)


From: "Andy Champion" <andychampion(at)hotmail(dot)com>
To: pgsql-interfaces(at)postgresql(dot)org
Subject: libpq/INSERT
Date: 2001-04-24 15:31:55
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-interfaces
<DIV>Hi, i'm trying to insert data pulled into a postgresql database but i'm having some problems with the inserts.</DIV>
<DIV>i know that this:<BR>sprintf(insert_string, "INSERT INTO udpdata VALUES (1234);\n");</DIV>
<DIV>is a valid statment, but how do i alter this so that instead of the 1234 i insert the value of a variable?</DIV>
<DIV>thanks</DIV></DIV><br clear=all><hr>Get Your Private, Free E-mail from MSN Hotmail at <a href=""></a>.<br></p></html>

Attachment: unknown_filename
Description: text/html (570 bytes)


pgsql-interfaces by date

Next:From: Alexey NalbatDate: 2001-04-24 15:55:32
Subject: c-function returning multiple rows
Previous:From: will trillichDate: 2001-04-24 07:15:16
Subject: Re: Var substitution in SELECT statements

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group