Skip site navigation (1) Skip section navigation (2)

Re:

From: "Chris Travers" <chris(at)travelamericas(dot)com>
To: "MUKTA" <muktavasudeva(at)hfcl(dot)com>, <pgsql-sql(at)postgresql(dot)org>
Subject: Re:
Date: 2004-01-30 03:03:49
Message-ID: 003e01c3e6dd$f385a9d0$ea44053d@winxp (view raw or flat)
Thread:
Lists: pgsql-sql
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(at)postgresql(dot)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

In response to

  • at 2004-01-29 13:08:33 from MUKTA

pgsql-sql by date

Next:From: Greg StarkDate: 2004-01-30 06:07:39
Subject: Re: limit 1 and functional indexes
Previous:From: Bill MoranDate: 2004-01-30 01:07:40
Subject: Re: [PERFORM] Set-Returning Functions WAS: On the performance of

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group