X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 83462D1D223 for ; Thu, 29 Jan 2004 11:57:19 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 89144-01 for ; Thu, 29 Jan 2004 07:56:56 -0400 (AST) Received: from mx.primus-india.net (unknown [203.196.128.60]) by svr1.postgresql.org (Postfix) with ESMTP id 9D8C0D1D202 for ; Thu, 29 Jan 2004 07:56:45 -0400 (AST) Received: from mukta (cfsl-73-129-del.cofuture.com [203.196.129.73] (may be forged)) by mx.primus-india.net (8.12.8/8.12.8) with SMTP id i0TCHx8Y007240 for ; Thu, 29 Jan 2004 17:48:01 +0530 Message-ID: <007701c3e65f$bc001730$ea08a8c0@mukta> From: "MUKTA" To: Subject: Date: Thu, 29 Jan 2004 17:32:10 +0530 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0074_01C3E68D.D36D78D0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2314.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 X-Virus-Scanned: by amavisd-new at postgresql.org X-Spam-Status: No, hits=0.7 tagged_above=0.0 required=5.0 tests=HTML_40_50 X-Spam-Level: X-Archive-Number: 200402/13 X-Sequence-Number: 16704 This is a multi-part message in MIME format. ------=_NextPart_000_0074_01C3E68D.D36D78D0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi! I want to insert values into a table using the C syscalls provided by the l= ibpq library, but i find that i cant insert into the table when i use varia= bles instead of values...like so: int a,b,c,d; using the C function=20 res=3DPQexecute(Conn,"INSERT into table values(a,b,c,d));.... Is there some special way to insert variables rather than plain values? do = i have to build functions (in sql) or somehting?help! Thanx Mukta ------=_NextPart_000_0074_01C3E68D.D36D78D0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi!
I want to insert values into a table using= the C=20 syscalls provided by the libpq library, but i find that i cant insert into = the=20 table when i use variables instead of values...like so:
int a,b,c,d;
using the C function
 
res=3DPQexecute(Conn,"INSERT into table=20 values(a,b,c,d));....
 
Is there some special way to insert variab= les=20 rather than plain values? do i have to build functions (in sql) or=20 somehting?help!
Thanx
Mukta
------=_NextPart_000_0074_01C3E68D.D36D78D0--