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

Re: Passing arguments

From: Michael Fuhr <mike(at)fuhr(dot)org>
To: pr0v4 <josip(dot)povreslo(at)gmail(dot)com>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: Passing arguments
Date: 2006-09-14 01:31:10
Message-ID: 20060914013110.GA70846@winnie.fuhr.org (view raw or flat)
Thread:
Lists: pgsql-novice
On Tue, Sep 12, 2006 at 11:30:54AM +0200, pr0v4 wrote:
> Can anyone show me few examples on passing variable values to query
> parameters??? I've tryed to search anything on google, but there is nothing
> useful. To be more specific I need examples with libpq library, wich meens I
> need code in C programming language. I've tryed examples from PostgreSQL
> source, but they also does not work! What I've learned is that I have to use
> PQexecParam... I need query wich will insert some data in postgresql
> database, but with  7 query parameters wich are variables (integers).

What did you try and how did it not work?  Did you get compile-time
errors?  Run-time errors?  Unexpected behavior?  Is there a reason
you're using C instead of a higher-level language like Perl, Ruby,
Python, etc.?

-- 
Michael Fuhr

In response to

pgsql-novice by date

Next:From: Glenn DavyDate: 2006-09-14 06:20:18
Subject: Re: replication/synchronisation
Previous:From: Don ParrisDate: 2006-09-13 23:27:09
Subject: Re: [GENERAL] Question About Aggregate Functions

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