Received: from mail.isbank.net.tr (mail1.isbank.net.tr [212.98.2.198]) by hub.org (8.10.1/8.10.1) with ESMTP id e6P6qth41945 for ; Tue, 25 Jul 2000 02:52:55 -0400 (EDT) Received: from gunes ([193.140.154.57]) by mail.isbank.net.tr (Netscape Messaging Server 4.15) with SMTP id FY8SLV00.MIN for ; Tue, 25 Jul 2000 10:25:07 +0300 Message-ID: <003701bff604$b18d6900$399a8cc1@gunes.med.deu.edu.tr> From: "Gunes Erkan" To: Subject: Date: Tue, 25 Jul 2000 09:51:00 +0300 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0034_01BFF61D.D6B16E20" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 4.72.3110.5 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 X-Archive-Number: 200007/181 This is a multi-part message in MIME format. ------=_NextPart_000_0034_01BFF61D.D6B16E20 Content-Type: text/plain; charset="iso-8859-9" Content-Transfer-Encoding: quoted-printable How can i use C variables in libpq, I mean I want to write a query like= =20 res =3D PQexec (conn, "DECLARE cursor_name CURSOR FOR select * from table_n= ame where field>c_variable"), where c_variable is a C variable. Is there a way to do this, what is th= e syntax? I'm bored with concatenating strings. By the way, can I handle the queries without using cursors, that is onl= y writing 'select' statements. I couln'd find an example to these situation= s. Thanks you all... -gunes ------=_NextPart_000_0034_01BFF61D.D6B16E20 Content-Type: text/html; charset="iso-8859-9" Content-Transfer-Encoding: quoted-printable
    How can= i use C=20 variables in libpq, I mean I want to write a query like 
 
res =3D PQexec (conn, &quo= t;DECLARE=20 cursor_name CURSOR FOR select * from table_name where=20 field>c_variable"),
 
    where c= _variable=20 is a C variable. Is there a way to do this, what is the syntax? I'm bored w= ith=20 concatenating strings.
 
    By the = way, can I=20 handle the queries without using cursors, that is only writing 'select'=20 statements. I couln'd find an example to these situations.
 
    Thanks = you=20 all...
 
        -gunes
------=_NextPart_000_0034_01BFF61D.D6B16E20--