From: Chris Travers <chris@travelamericas.com>
To: MUKTA <muktavasudeva@hfcl.com>
To: pgsql-sql@postgresql.org
Subject: Re:
Date: Fri, 30 Jan 2004 10:03:49 +0700
Message-ID: <003e01c3e6dd$f385a9d0$ea44053d@winxp> (raw)
References: <00a801c3e669$004f08c0$ea08a8c0@mukta>
You can also use PGexecParams() (see the libpq documentation). It can be a little more cumbersome to use, though.
Best Wishes,
Chris Travers
----- Original Message -----
From: MUKTA
To: pgsql-sql@postgresql.org
Sent: Thursday, January 29, 2004 8:08 PM
Subject: [SQL]
Hi I have an urgent problem
I want to insert values into a table using the C syscalls provided by the libpq library, but i find that i can not insert into the table when i use variables instead of values...like so:
int a,b,c,d;
using the C function
res=PQexecute(Conn,"INSERT into table values(a,b,c,d));....
executing above statement with plain integers does fine and inserts them into table..
Is there some special way to insert variables rather than plain values? do i have to build functions (in sql) or somehting?help!
Thanx
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-sql@postgresql.org
Cc: chris@travelamericas.com, muktavasudeva@hfcl.com
Subject: Re:
In-Reply-To: <003e01c3e6dd$f385a9d0$ea44053d@winxp>
* 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