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

libpq/INSERT

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 (view raw or flat)
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>&nbsp;</DIV>
<DIV>i know that this:<BR>sprintf(insert_string, "INSERT INTO udpdata VALUES (1234);\n");</DIV>
<DIV>&nbsp;</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>&nbsp;</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: unknown_filename
Description: text/html (570 bytes)

Responses

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-2014 The PostgreSQL Global Development Group