Received: from femail7.sdc1.sfba.home.com (femail7.sdc1.sfba.home.com [24.0.95.87]) by postgresql.org (8.11.3/8.11.1) with ESMTP id f3OGDc378775 for ; Tue, 24 Apr 2001 12:13:38 -0400 (EDT) (envelope-from allenwc@home.com) Received: from [24.69.193.0] by femail7.sdc1.sfba.home.com (InterMail vM.4.01.03.20 201-229-121-120-20010223) with ESMTP id <20010424161333.MJBH6427.femail7.sdc1.sfba.home.com@[24.69.193.0]>; Tue, 24 Apr 2001 09:13:33 -0700 Mime-Version: 1.0 X-Sender: allenwc@netmail.home.com Message-Id: In-Reply-To: References: Date: Tue, 24 Apr 2001 09:13:36 -0700 To: "Andy Champion" From: liam Subject: Re: libpq/INSERT Cc: pgsql-interfaces@postgresql.org Content-Type: text/plain; charset="us-ascii" ; format="flowed" X-Archive-Number: 200104/106 X-Sequence-Number: 1490 At 3:31 PM +0000 4/24/01, Andy Champion wrote: >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"); > i= 1234 ; sprintf (insert_string, "INSERT INTO updata VALUES(%i);\n",i) ; it's just plain old ordinary ansi c. -- Later . . . 'liam allenwc@home.com William C Allen, BLS, EET "It may be that your sole purpose in life is to serve as a warning to others" At least I /have/ a purpose!