pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Gunes Erkan <gerkan@isnet.net.tr>
To: pgsql-interfaces@postgresql.org
Date: Tue, 25 Jul 2000 09:51:00 +0300
Message-ID: <003701bff604$b18d6900$399a8cc1@gunes.med.deu.edu.tr> (raw)

    How can i use C variables in libpq, I mean I want to write a query like 

res = PQexec (conn, "DECLARE cursor_name CURSOR FOR select * from table_name where field>c_variable"),

    where c_variable is a C variable. Is there a way to do this, what is the syntax? I'm bored with concatenating strings.

    By the way, can I handle the queries without using cursors, that is only writing 'select' statements. I couln'd find an example to these situations.

    Thanks you all...

        -gunes

Message-ID: <003701bff604$b18d6900$399a8cc1@gunes.med.deu.edu.tr>
Permalink:  ../003701bff604$b18d6900$399a8cc1@gunes.med.deu.edu.tr/
Also on:    postgresql.org/message-id/003701bff604$b18d6900$399a8cc1@gunes.med.deu.edu.tr

 · 

reply

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-interfaces@postgresql.org
  Cc: gerkan@isnet.net.tr
  Subject: Re: 
  In-Reply-To: <003701bff604$b18d6900$399a8cc1@gunes.med.deu.edu.tr>
  References: <003701bff604$b18d6900$399a8cc1@gunes.med.deu.edu.tr>

* 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