Re: [INTERFACES] ecpg cursors and scope

Поиск
Список
Период
Сортировка
От Pavel PaJaSoft Janousek
Тема Re: [INTERFACES] ecpg cursors and scope
Дата
Msg-id 00bb01be8d61$ad46e040$0200a8c0@server.fonet2.cz
обсуждение исходный текст
Ответы Re: [INTERFACES] ecpg cursors and scope
Список pgsql-interfaces
>>     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
--------------------------------------------------------------------------




В списке pgsql-interfaces по дате отправления:

Предыдущее
От: Jon Barnett
Дата:
Сообщение: RE: [INTERFACES] JDBC next() method
Следующее
От: "Pavel PaJaSoft Janousek"
Дата:
Сообщение: Re: [INTERFACES] Comment in ECPG - again