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: | F124n1xxWn9R6mJB5260000bd17@hotmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-interfaces |
<html><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>i know that this:<BR>sprintf(insert_string, "INSERT INTO udpdata VALUES (1234);\n");</DIV>
<DIV> </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> </DIV>
<DIV>thanks</DIV></DIV><br clear=all><hr>Get Your Private, Free E-mail from MSN Hotmail at <a href="http://www.hotmail.com">http://www.hotmail.com</a>.<br></p></html>
Attachment | Content-Type | Size |
---|---|---|
unknown_filename | text/html | 570 bytes |
From | Date | Subject | |
---|---|---|---|
Next Message | Alexey Nalbat | 2001-04-24 15:55:32 | c-function returning multiple rows |
Previous Message | will trillich | 2001-04-24 07:15:16 | Re: Var substitution in SELECT statements |