pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Pavel PaJaSoft Janousek <janousek@fonet.cz>
To: Michael Meskes <meskes@postgresql.org>
Cc: PgSQL Interfaces <pgsql-interfaces@postgresql.org>
Subject: Re: [INTERFACES] ecpg cursors and scope
Date: Fri, 23 Apr 1999 10:17:03 +0200
Message-ID: <00bb01be8d61$ad46e040$0200a8c0@server.fonet2.cz> (raw)

>>     I think, that principly is correct contructions like this:
>
>No, to do this you need the PREPARE statement.


    Thanks, but in PostgreSQL or ECPG manual isn't this... and I forgot
syntax from Oracle...Could you put some example (the best is the contruction
below)?

if (cond)
    exec sql declare cur cursor for select count (*) from tpm;
else
    exec sql declare cur cursor for select count (*) from tpm where col1 =
:cislo1;
exec sql open cur;
exec sql whenever not found break;
while (1)
{
    exec sql fetch in cur into :cislo2;
}

    Thanks...

-------------------------------------------------------------------------
Pavel Janousek (PaJaSoft)                         FoNet, spol. s r. o.
Vyvoj software, sprava siti, Unix, Web, Y2K     Anenska 11, 602 00  Brno
E-mail: mailto:Janousek@FoNet.Cz                Tel.: +420  5  4324 4749
SMS:    mailto:P.Janousek@SMS.Paegas.Cz         Fax.: +420  5  4324 4751
WWW:    http://WWW.FoNet.Cz/                  E-mail: mailto:Info@FoNet.Cz
--------------------------------------------------------------------------





view thread (8+ messages)  latest in thread

Message-ID: <00bb01be8d61$ad46e040$0200a8c0@server.fonet2.cz>
Permalink:  ../00bb01be8d61$ad46e040$0200a8c0@server.fonet2.cz/
Also on:    postgresql.org/message-id/00bb01be8d61$ad46e040$0200a8c0@server.fonet2.cz

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: janousek@fonet.cz, meskes@postgresql.org
  Subject: Re: [INTERFACES] ecpg cursors and scope
  In-Reply-To: <00bb01be8d61$ad46e040$0200a8c0@server.fonet2.cz>

* 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