pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andy Champion <andychampion@hotmail.com>
To: pgsql-interfaces@postgresql.org
Subject: libpq/INSERT
Date: Tue, 24 Apr 2001 15:31:55 -0000
Message-ID: <F124n1xxWn9R6mJB5260000bd17@hotmail.com> (raw)

<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;



view thread (4+ messages)  latest in thread

Message-ID: <F124n1xxWn9R6mJB5260000bd17@hotmail.com>
Permalink:  ../F124n1xxWn9R6mJB5260000bd17@hotmail.com/
Also on:    postgresql.org/message-id/F124n1xxWn9R6mJB5260000bd17@hotmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: andychampion@hotmail.com
  Subject: Re: libpq/INSERT
  In-Reply-To: <F124n1xxWn9R6mJB5260000bd17@hotmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox