Received: from hotmail.com (f124.law8.hotmail.com [216.33.241.124]) by postgresql.org (8.11.3/8.11.1) with ESMTP id f3OFVx362862 for ; Tue, 24 Apr 2001 11:31:59 -0400 (EDT) (envelope-from andychampion@hotmail.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Tue, 24 Apr 2001 08:31:55 -0700 Received: from 62.255.18.169 by lw8fd.law8.hotmail.msn.com with HTTP; Tue, 24 Apr 2001 15:31:55 GMT X-Originating-IP: [62.255.18.169] From: "Andy Champion" To: pgsql-interfaces@postgresql.org Subject: libpq/INSERT Date: Tue, 24 Apr 2001 15:31:55 -0000 Mime-Version: 1.0 Content-Type: text/html Message-ID: X-OriginalArrivalTime: 24 Apr 2001 15:31:55.0780 (UTC) FILETIME=[B1B26C40:01C0CCD3] X-Archive-Number: 200104/105 X-Sequence-Number: 1489
Hi, i'm trying to insert data pulled into a postgresql database but i'm having some problems with the inserts.
 
i know that this:
sprintf(insert_string, "INSERT INTO udpdata VALUES (1234);\n");
 
is a valid statment, but how do i alter this so that instead of the 1234 i insert the value of a variable?
 
thanks


Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.